0

Hey Hey everyone :)
I need some serious help with writing this game. Its called Nine Men's Morris! If some one has any idea how to write it, or possibly has the code for it. PLEASE PLEASE LET ME KNOW!!! You will be a life saver!!!!

Thx Lexi

3
Contributors
5
Replies
7
Views
9 Years
Discussion Span
Last Post by jlm699
0

What have you tried so far? What errors are you running into? What are the rules of said game?

0

I have drawn the board and the 18 circles in diff colours...
I do not really know how to select a circle and move to an empty space on the board...

0

the strategy is to get 3 pieces in a row, which allows you to remove one of your apponents pieces. The game is played untill one of the players is left with 3 pieces or has no leagal moves...

0

I suggest that you modularize your code. Come up with some kind of structure that will detail player positions.

Then come up with a function to print the game board, which takes the player position structure as input. Then you'll need a 'movement' function, which will check two other functions for checking whether a move is valid or not, as well as winning conditions.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.