- Two buttons, one for starting a new game, and one for exit the
game.
- A label which displays the following message as appropriate:
- "Player 1's move:"
- "Player 2's move:"
- "Player 1 won!"
- "Player 2 won!"
- "Game tied!"
Note that your GUI interface should automatically adjust to the size of
the window. For example, when the window is resized, the board should
be enlarged or shrinked accordingly.
[AI Player] For extra credit, add another game mode where a human
player can play with an AI player. The AI player follows a simple
strategy:
- First check whether it already has two symbols lined up and the
third position in the same line unoccupied. If so, make the winning
move.
- If there's no winning move, check whether it needs to stop a
winning move by the opponent.
- If there's no winning move by either side, make a move at a
randomly chosen, unoccupied position.
[Grading] The total points for this project is 100, with 40 extra
credit if you choose to implement an AI player.
- GUI (50pt)
- Game mechanics (50pt)
- AI player (extra credit 40pt)