C# 翻转棋游戏源程序.zip

  • danxiao_a
    了解作者
  • C#
    开发工具
  • 294KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2021-01-12 10:00
    上传日期
C# 翻转棋游戏源程序代码,小游戏源码。
C# 翻转棋游戏源程序.zip
内容介绍
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>Strategy Guide</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <h4>Strategy Guide</h4> <p>This guide explains some common terms used in Reversi and describes a few general strategies for winning.</p> <h5>Stable Discs</h5> <p>A disc played in a corner cannot be outflanked. These are considered stable discs since the opponent cannot flip them.</p> <p>During the course of a game, discs at other positions will become stable once they can no longer be outflanked. This makes gaining corner squares very advantageous. They can serve as an anchor to gaining stable positions starting along the adjacent edges.</p> <p>Figure 1 below shows Black with nine stable discs anchored to the upper left corner.</p> <div class="figure"><br /><em>Figure 1</em></div> <h5>Positioning</h5> <p>While corner squares are desirable, making a move on a square next to an open corner is not. Doing so may open up the corner for your opponent.</p> <p>Given the strategic importance of these squares, they are commonly referred to as C-squares and X-squares, as shown in Figure 2.</p> <div class="figure"><br /><em>Figure 2</em></div> <p>In particular, you should avoid playing the X-square next to an open corner.</p> <h5>Mobility</h5> <p>One strategy that is effective throughout the game is to leave your opponent with as few legal moves as possible while not limiting your own choices. This is called mobility.</p> <p>This can force your opponent into making a bad move. Figure 3 shows a situation where, on White's turn, the player is forced to play B2 (an X-Square), as he has no other legal move.</p> <div class="figure"><br /><em>Figure 3</em></div> <p>This leaves the board as shown in Figure 4.</p> <div class="figure"><br /><em>Figure 4</em></div> <p>This allows Black to take the corner at A1, as seen in Figure 5.</p> <div class="figure"><br /><em>Figure 5</em></div> <h5>Forfeits</h5> <p>Leaving your opponent with no legal moves will force him to forfeit his turn. This can be very advantageous as you are able to play two (or possibly more) of your discs consecutively.</p> <p>Likewise, you want to leave yourself with as many potential moves as possible, so you won't be forced to make a bad one or forfeit your turn. While the object of the game is to finish with more discs on the board than your opponent, it is often better to have fewer discs in the early stages of the game as this helps limit your opponent's choices.</p> <h5>Frontier Discs</h5> <p>One easy way to measure mobility is to count how many frontier discs you have vs. your opponent. A frontier disc is one that is adjacent to an empty square (including diagonals).</p> <p>The fewer frontier discs you have, the fewer moves your opponent will likely have on subsequent turns.</p> <p>In Figure 6, White has 16 discs in all while Black has ten. However, 15 of White's discs are on the frontier (the only White disc not adjacent to an empty space is at E5). Black has only five discs on the frontier.</p> <div class="figure"><br /><em>Figure 6</em></div> <p>At this point, White has only three possible moves, at B4, B7 or B8. Two of those moves are next to the corner, which Black can subsequently take. Black, on the other hand, will have a number of possible moves to choose from on his next few turns.</p> <h5>Wedges</h5> <p>Take a look at Figure 7. If Black plays D1, he can take the corner at H1 on his next move. Because D1 is between two of White's discs along the edge, there would be no way for White to flip Black's disc back. Such a play is called a wedge.</p> <div class="figure"><br /><em>Figure 7</em></div> <p>Also note the left edge of Figure 7, where Black has a pair of discs with two empty squares between them. If White where to play either the A5 or A6 square, Black could flip White's disc back by playing the other square. In general, if you have an odd number of empty squares between two of your discs along an edge, you opponent can play a wedge. But if you have an even number of empty squares between them, the wedge can be avoided.</p> <h5>Unbalanced Edges</h5> <p>Figure 8 shows a situation where Black has a row of five discs along the left edge. This is commonly referred to as an unbalanced edge.</p> <div class="figure"><br /><em>Figure 8</em></div> <p>In Figure 9, White plays B7. This would normally be considered a bad move since it is an X-Square and, as in this case, will allow Black to take the corner at A8.</p> <div class="figure"><br /><em>Figure 9</em></div> <p>Black does so, as shown in Figure 10.</p> <div class="figure"><br /><em>Figure 10</em></div> <p>However, White can now play the wedge at A7. Figure 11 shows the result.</p> <div class="figure"><br /><em>Figure 11</em></div> <p>Black cannot do much at this point, settling for a move at H3 as seen in Figure 12.</p> <div class="figure"><br /><em>Figure 12</em></div> <p>White can now take the corner at A1, shown in Figure 13. Note that White can subsequently take the corner at H1 on his next turn as well.</p> <div class="figure"><br /><em>Figure 13</em></div> <h5>Parity</h5> <p>Near the end of a game, isolated regions of adjacent, empty spaces may appear on the board. Figure 14 shows an example where four such regions have formed, one near each corner of the board.</p> <div class="figure"><br /><em>Figure 14</em></div> <p>It is usually advantageous to make the last move in such regions. In the above example, White is to move next. By playing his disc in a region with an odd number of empty squares, he is likely to have the last move in that region (assuming neither player must forfeit a turn). Conversely, he should avoid making a move in a region with an even number of empty squares, as would likely give Black the advantage.</p> <p>Obviously, White should not blindly give up a corner or allow Black to capture an edge (or avoid gaining the same) just to achieve this parity advantage. But combined with careful play, it could mean the difference between winning and losing in a close game.</p> <div> <object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e"> <param name="Keyword" value="forfeit" /> <param name="Keyword" value="move" /> <param name="Keyword" value="score" /> <param name="Keyword" value="turn" /> </object> </div> </body> </html>
评论
    相关推荐
    • WP7连连看游戏
      该源码实现一款现在很流行的一种游戏,WP7连连看游戏游戏玩法很简单,只要我们需要找到相同的两张牌用三根以内的直线连在一起就可以消除,非常好玩,并且游戏的源码比较齐全,喜欢wp游戏开发的朋友可以下载学习看...
    • H5游戏实战
      H5游戏 HTM5 游戏开发实战.pdf
    • 贪吃蛇游戏
      适合刚学完javase项目的人锻炼代码能力
    • matador:游戏游戏游戏
      斗牛士 @sambwrs 的游戏开发中 正在使用的库慢跑卢阿瓦
    • TankWar小游戏
      游戏开发文档及代码。。。 菜单项可以选择开始新游戏,退出,暂停,继续,帮助功能,对于开始新游戏,退出两个功能,要给出提示,用户是否真的想继续操作!
    • 游戏引擎
      游戏引擎(未命名)
    • 游戏程序设计
      使用VC6.0开发的一款游戏程序,地图无限大,人物运动及人物升级设计都有,适合初学游戏程序设计的同学,简单的尝试一些游戏代码的功能
    • 打字游戏程序
      游戏运用到了线程和集合,使用的集合是Dictionary,它用于存放存放所有运行中的线程,而游戏中出现的字母是定义了Label控件,产生随机数的方法实现的,而让字母自由落下用的timer控件,调用它的线程并对自由下落...
    • 网络 游戏 引擎 游戏引擎下载
      网络 游戏 引擎 游戏引擎下载网络 游戏 引擎 游戏引擎下载网络 游戏 引擎 游戏引擎下载网络 游戏 引擎 游戏引擎下载网络 游戏 引擎 游戏引擎下载网络 游戏 引擎 游戏引擎下载网络 游戏 引擎 游戏引擎下载网络 游戏 ...
    • chunzhou游戏开发
      游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发游戏开发...