public void play() {

		long no = 1;
		try {

			while (true) {
				if (1 == (no % 2)) {
					JchessEntity jchess = new JchessEntity(data.generate(1));
					Command cmd = player1.play(jchess);
					if (cmd.isGiveup()) {
						throw new CommandException(1, "܂B");
					}
					data.command(1, cmd);
				} else {
					JchessEntity jchess = new JchessEntity(data.generate(2));
					Command cmd = player2.play(jchess);
					if (cmd.isGiveup()) {
						throw new CommandException(1, "܂B");
					}
					data.command(2, cmd);
				}
				no++;
			}

		} catch (CommandException ex) {
			System.out.println(ex.getPlayer() + ":" + ex.getMessage());
		}

	}