Flip Game
Description
Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying either it's black or white side up. Each round you flip 3 to 5 pieces, thus changing the color of their upper side from black to white and vice versa. The pieces to be flipped are chosen every round according to the following rules:
|
POJ 1753 Flip Game BFS
最新推荐文章于 2022-01-30 13:15:32 发布
这篇博客主要介绍了POJ 1753翻转游戏的解决思路,作者提到这是一道可以通过枚举所有情况解决的题目,虽然也有人尝试使用DFS。作者使用了BFS来求解,但初次尝试时出现了小错误。文章还提到了一些高级的位运算技巧,并分享了其他人的解决方案链接,供读者参考。
摘要由CSDN通过智能技术生成