Priority Tic Tac Toe
Rules
- Both players write numbers 1-9 on the squares on their board
- Players then take it in turns to go in the square in their board with the lowest number which is still empty
- The game ends when one player has three in a row or all squares have been filled in
Java Source Code
PriorityTicTacToeApplet.java | Provides the interface for Priority Tic Tac Toe. |
PriorityTicTacToeBoard.java | Maintains the priorities a player has assigned to each square. |
TicTacToeBoard.java | Simulates a game from the priorities specified by each player. |
Complete source (5kb, zipped)
This applet was created using Eclipse.