Thanks to visit codestin.com
Credit goes to github.com

Skip to content

uwais-ix/gameOfChomp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Game Of Chomp

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.

Prerequisite

Compile/Run Instructions

  • Open the src folder.
  • Open a terminal window in the src folder.
  • Compile all files usingjavac *.java
  • After compiling, run the game using java chompGame

Game Instructions

Selection

Select a chocolate size to start a game:

  • Small (4x4)
  • Medium (7x7)
  • Large (10x10)

Chomp Action

All squares from the bottom left corner up to the chomped (clicked) chocolate will be removed

Computer Turn

Computer selection will be highlighted in yellow and chomped ~1 sec later.

Game Over

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.

Reset

To play with a different size, click on Reset and select your desired size.

About

Chomp game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages