码迷,mamicode.com
首页 > 其他好文 > 详细

[LeetCode] 8.8 Othello Game 黑白棋游戏

时间:2015-09-13 14:29:42      阅读:131      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!