Skip to content

tmst/Tic-Tac-Toe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

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.

About

coding challenge: Create an app that can interactively play the game and never lose.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%