Chomp is a two-player strategy game played on a rectangular grid made up of smaller square cells, which can be thought of as the blocks of a chocolate bar. The players take it in turns to choose one block and "eat it" (remove from the board), together with those that are below it and to its right. The top left block is "poisoned" and the player who eats this loses.
More information about the game here
Built using Java and Swing.
- Have JDK installed.
- Have PATH system variable setup.
- Open the src folder.
- Open a terminal window in the src folder.
- Compile all files using
javac *.java - After compiling, run the game using
java chompGame
Select a chocolate size to start a game:
- Small (4x4)
- Medium (7x7)
- Large (10x10)
All squares from the bottom left corner up to the chomped (clicked) chocolate will be removed
Computer selection will be highlighted in yellow and chomped ~1 sec later.
Whoever is left with the soap loses the game.
- Clicking Yes will start a new game win the same size.
- Clicking No will close the game.
To play with a different size, click on Reset and select your desired size.