Othello
约 1 分钟· 本文阅读 次
本页目录
Othello
Othello is played as follows: Each Othello piece is white on one side and black on the other. When a piece is surrounded by its opponents on both the left and right sides, or both the top and bottom, it is said to be captured and its color is flipped. On your turn, you must capture at least one of your opponent's pieces. The game ends when either user has no more valid moves. The win is assigned to the person with the most pieces. Implement the object-oriented design for Othello.
Solution
Basic Design
- enum Direction
- enum Color
- class Game
- class Board
- class Piece
- class Player
相关文章
- Add and Search Word Data structure design2016-01-17
- Animal Shelter2016-01-17
- Call Center2016-01-17
- Chat Server2016-01-17
已恢复到上次阅读位置