You play as X, the computer plays as O Click to select a tile Press R to reset the computer's memory
100% code by me By playing enough games, the computer "learns" more losing positions. The artificial intelligence program is able to "see" one move ahead, meaning if it encounters a position in which it has previously lost after its next move, it will not make that same mistake again. However, I have not implemented code to allow it to see two steps ahead, so it will still fall for "traps" where it allows you to set up a double attack.