|
This is the mini version of the typical reversi game. As the game involves the concept of probabilities, it is quite difficult to write out the procedures. After a lot of hard thinking, I finally figure out the way to do it. I use a two set of two dimensional array and declare as Boolean , one represent the white piece and the other one represent the black pieces. If the white piece or the black piece occupy a square, the variable becomes true or else it is false.
|