Web Cryptogram
|
Reversi
Here's a simple version of the classic game.
For board evaluation, your computer opponent is utilizing a modified version of the greedy algorithm. The board is evaluated based on how many white and black pieces are in certain positions. He places the most value on the corners, then the side positions, and finally the interior positions. The difference between "Easy" and "Difficult" lies in the number of moves your opponent looks ahead using the minimax algorithm. On "Easy," he merely examines the consequences of his next move. On "Difficult," he examines the consequences six moves into the future. It makes a difference. Basically, he chooses the move which provides him the greatest gain. I hope to implement an even smarter move engine, utilizing a genetic algorithm. |