Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

A simple game of logic

Requirements

  • Ability to play against the computer at multiple levels (i) uncomputed game play - random computer move on each occaision. (ii) checks for any move that would result in a win, otherwise random play. (iii) checks for any move that would result in a win, checks for any blocking moves, otherwise random play. (iv) computed game play. Always play centre square first, checks for any possible winning moves, check for any blocking moves, most strategic other move etc. (Expected output - computer win or draw the only possible outcome).

  • Random choice as to who starts first "Flip a coin to start" (i) heads or tails pick / computer pick (would increase interaction with computer player) (ii) coin flip Post coin flip (iii) a resign from game button appears. (iv) a statement as to who will make the first move is made - various commentaries by the computer player will be randomly cycled.

  • Themed gameplay (i) Choice of themes with choice of token. a. Flowery b. Traditional c. Fairytale c. Dark

  • Simple one page gameplay (i) Theme selectors radio buttons - disabled during gameplay. (ii) You win modal. You won in x moves / y seconds. (iii) Game board
    a. Reading left to right - 6,1,8,7,5,3,2,9,4 - so that all winning moves total fifteen b. Winning options 618,753,294,672,159,834,654,852

About

Tic Tac Toe game to practise basic javascript

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages