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
Your browser understands the <APPLET> tag but isn't running the applet, for some reason. Your browser is ignoring the <APPLET> tag!

Java Source Code

PriorityTicTacToeApplet.javaProvides the interface for Priority Tic Tac Toe.
PriorityTicTacToeBoard.javaMaintains the priorities a player has assigned to each square.
TicTacToeBoard.javaSimulates a game from the priorities specified by each player.

Complete source (5kb, zipped)

This applet was created using Eclipse.