【发布时间】:2017-03-27 04:40:31
【问题描述】:
所以我完全不知道为什么这不起作用 - 但 GUI 不会响应 getMove(GameState gameState) 方法中的任何内容。
即使在我移动后通过睡眠暂停它——它根本不显示任何内容。任何帮助都会很棒。我很迷茫。
public class Engine extends Player {
private GameState copy;
public Engine(Color color, Direction direction) {
super(color, direction);
}
public Move getMove(GameState gameState) {
gameState.executeMove(new Move(4, 6, 4, 4));
try {
TimeUnit.SECONDS.sleep(1);
} catch (Exception e) {
e.printStackTrace();
}
return new Move(5, 6, 5, 4);
}
}
【问题讨论】:
标签: java swing debugging animation chess