首页 > 其他 > 详细

[LeetCode] 8.8 Othello Game 黑白棋游戏

时间:2015-09-13 14:26:29      阅读:277      评论:0      收藏:0      [点我收藏+]

 

8.8 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.

[LeetCode] 8.8 Othello Game 黑白棋游戏

原文:http://www.cnblogs.com/grandyang/p/4804629.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!