Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.17 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.17 KB

tictactoe

Updated Badge

Utilising typescript and webpack

A learning project focussing on using typescript and webpack

Uses a minimax algorithm to determine best cpu move

Heroku link: http://hallams-tictactoe.herokuapp.com/

Usage:

npm install

npm start

Visit http://localhost:3002/ to access the app.

Todos:

features

  • Finish notification component - reposition to above board container
  • implement hasWon() function
  • implement hasDrawn() function
  • implement AI/cpu logic
  • resetBoard() function
  • fix pseudo random start turn (seems to heavily favour player current}

Roadmap

  • data collection and visualisation based on all played games
  • user login system and rankings
  • multiplayer over internet?

bugs/other

  • reformat into separate modules
  • Find more reactive way of storing board state to enable smooth transition to cpu turn (get rid of button)
  • Fix issue where cpu will purposefully lose if playing as "X"
  • Fix issue whereby player can take their turn after CPU has won