Game Development Reference
In-Depth Information
Figure 15-1: The starting Reversi board
has two white tiles and two black tiles.
Figure 15-2: White places a new tile.
The black tile at 5, 5 is in between the new white tile and the existing white tile at 5, 4.
That black tile is flipped over and becomes a new white tile, making the board look like
Figure 15-3. Black makes a similar move next, placing a black tile on 4, 6 which flips the
white tile at 4, 5. This results in a board that looks like Figure 15-4.
Figure 15-3: White's move will
flip over one of black's tiles.
Figure 15-4: Black places a new tile,
which flips over one of white's tiles.
Tiles in all directions are flipped as long as they are in between the player's new tile and
existing tile. Below in Figure 15-5, the white player places a tile at 3, 6 and flips black tiles
in both directions (marked by the lines.) The result is in Figure 15-6.
Search WWH ::




Custom Search