Diamond mine is a mini-game which is played on an 8 * 8 board as you can see below.The board is filled with different colors of diamonds. The player can make one move at a time. A move is. legal if it swaps two adjacent diamonds and after that, there are three or more adjacent. diamonds in a row or column with the same color. Those diamonds will be taken away and new. diamonds will be put in their positions. The game continues until no legal moves exist.Given the board description. You are going to determine whether a move is legal.
Diamond mine is a mini-game which is played on an 8 * 8 board as you can see below. The board is filled with different colors of diamonds. The player can make one move at a time. A move is legal if it swaps two adjacent diamonds(not diagonally) and after that, there are three or more adjacent diamonds in a row or column with the same color. Those diamonds will be taken away and new diamonds will be put in their positions. The game continues until no legal moves exist. Given the board description. You are going to determine whether a move is legal.