예제 #1
0
  /** @author David Rice This is the main for the Quoridor game */
  public static void main(String[] args) throws AWTException {

    Board board = new Board(2);

    board.setCurrPlayer(0);

    BoardGui frame = new BoardGui(board.getPlayerCount(), board.getCurrPlayer(), board);
    frame.setSize(700, 410);
    frame.setResizable(false);
    frame.setVisible(true);

    /*
    Robot bot = new Robot();

    // Rest for a little while
    try{Thread.sleep(900,000);}catch(InterruptedException e){}
    clickSpace(frame, bot, board, 3);

    clickHWall(frame, bot, board, 17);

    clickVWall(frame, bot, board, 10);
    */
  }