Othello - programming notes
Since the game of Othello has such a limited set of rules, it's considered the easiest game to write a computer program for. I wrote this version just for fun, and it's a very simple implementation.
The "intelligence" in this program consists of 9 filters of decreasing weight. When it's the computers turn to play, it runs all possible moves through the filters. The move that matches at the earliest level is chosen. There is no recursion, meaning that the computer doesn't try to figure out the opponents possible draws in advance. Strangely enough, this simple scheme is enough to make the computer play a quite descent game of Othello!
The programming language used is "PHP", a great language for server side webscripting. Read more about PHP at their website.
Game rules | Programming notes | Play the game | Home