Reversi

Download the following code, and get it to compile.

Files Needed

Make a program that plays Reversi. Wikipedia has the rules.

What You Should Do on Your Own

Assignments turned in without these things will receive no credit.

  1. Start by making it so that if the piece is played in a legal location, the pieces between are flipped.
  2. Then make it so that you can only play where it is legal.
  3. Finally, code it so that when one player has no legal moves, the other player gets to keep playing. The game should stop when the board is full or when neither player has any legal moves.



©2013 Graham Mitchell

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Creative Commons License