/Chomp-game

an implementation of the chomp game

Primary LanguageJava

Chomp-game

An implementation of the chomp game

The Game of Chomp. Chomp is a game invented by the late mathematician and economist David Gale.

Two players begin with a rectangular bar of chocolate, itself composed of smaller squares. They take it in turns to snap off - and eat - a lump of chocolate. However the top-left square has been replaced with a piece of soap. The loser is the person who has to eat the soap.

Each turn a player must choose a square then remove and eat it, along with all the squares that lie below and to the right of it.

References:

book: Math Hysteria by Ian Stewart, Oxford University Press 2004. website: http://www.whydomath.org/Reading_Room_Material/ian_stewart/chocolate/chocolate.html Prepared By: © Mark Hatcher, Department of Computer Science, MUN (BE190901)

How to run program is given in "chomp.txt" file

Code developed by Esosa Naomi Ighodaro

Document edited by Esosa Naomi Ighodaro