Java Reference
In-Depth Information
Figure 5-1. This is the starting board position for Reversi
Black gets the first turn and can place a piece anywhere adjacent to one of white's pieces where there is a matching
black piece on the same line (vertical, horizontal, or diagonal). From the starting position, there are only four legal
moves, which are highlighted in Figure 5-1 . All moves are equal position-wise, so let's assume that black goes in the
uppermost position. This allows black to flip the upper white piece, taking that entire column (see Figure 5-2 ).
Figure 5-2. The board position after black's first move
 
Search WWH ::




Custom Search