This repository contains a single player version of the board game Othello, which was created using Python with the turtle graphics library. The player plays against the computer, which has been programmed to pick the "optimal" move at each of its turns.
Similar to checkers, Othello is a game that involves using two different colored tiles (one for each player). When a tile of one color is sandwiched between two tiles of the opposite color, its color flips to the opposite color.
The objective of the game is to flip the color of as many of the opposing player's tiles as possible. The game ends when there are no legal moves left on the board for either player. The player with the most tiles of his/her color on the board wins.
The computer has been programmed to always pick the move that will result in the most tile flips. At each turn, the computer will scan the board for every possible legal move it can make. It will then count the number of tiles that would be flipped as a result of each legal move and pick the move that flips the most tiles.
- othello_driver.py - The driver of the game. Run this file to start the game.
- game_classes_final.py - Contains all of the classes and methods that make up the game.
- othello_test.py - The test suite for the game, which verifies that all classes and methods work properly.
- ai.txt - A more detailed description of how the AI works and its limitations.