tmst/Tic-Tac-Toe
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Program features: GUI written entirely in Python and compiled into JavaScript using Pyjamas. Accepts arbitrarily-large game board size as a parameter to the TicTacToe() constructor. Contains no hard-coded row or column numbers. Performs a simple matrix transformation (90-degree rotation) to get the list of winning row possibilities when searching for winning or blocking moves. Allows the human player to go first. Never loses. Implementation of game-ending sequence, such as flashing lights and sirens left for the student. INSTRUCTIONS: Copy output/ to a local directory. Load output/tictactoe.html into a recent version of Firefox. Click on a table cell. The program will then select its move, etc. Keep playing until the program gets 3 in a row or runs out of moves. Reload the page for a new game.