The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Anyone??
Anyway, dunno really without sitting down and thinking about it...
I suppose you'll need a domino pool class, made up of many instances of a domino class. With a remove from pool method, how many left in pool method etc.
A display class with a print method etc to view the new row of dominos.
Perhaps a person class, with various methods. Whos turn method, cant go method, skip turn method etc.
I'll put my thinking hat on and get back to you. Nice little exercise in OO, that is. Like it.
Here is a bit of the problem:
There are 28 possibilities of dominoes (numbers on heach range from 0-6.
The game is played as follows:
The dominoes are placed face down, shuffled, and each of the two players takes 7 dominoes. One of the players starts and puts down a domino (it doesn't need to
be a double). The opposing player then has to put down a domino next to this so that the number of spots on the ends of the dominoes matches. Play continues in
this fashion, with alternating players adding matching dominoes to either end of the growing line of dominoes. If a player cannot go (i.e. does not have a matching
domino) then they must 'chap' - miss their go, and play moves to the other player. If neither player can go then the winner is the player with the fewest domino spots
in total (a 'count'). The winner is the first player to use up all their dominoes, or in the event of a 'count', the player with fewer spots.
After each turn, your program should display the line of dominoes, the dominoes held by the user, and an indication of how many dominoes the computer still has.
During the game you should not show the dominoes held by the computer - only an indication of how many it has left. At the end of the game you can reveal the
computer's dominoes.
Just wandering what you think is the best way to go about it, ie how many classes I should use. Thanks if you can help.
Anyone??