Skip to content

rootux/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

A task I was given to prove my react skills. Create a Tic-Tac-Toe game. Bonus - add suggest button with ai capabilities.

Development

Start the project using npm start Open http://localhost:3000 to view it in the browser.

Test

Run npm test

Production

Run npm run build Builds the app for production to the build folder

Architecture

I've used a few patterns worth mentioning:

  • State-Reducer - To keep the state in a central place and allow different components to communicate using fetch commands
  • Context - Mainly to share fetch so child components would be able to communicate with different parts of the system

TODO

  • Given more time I would add more unit tests
  • Given more time I would add Snapshot testing for components
  • Improve the alpha beta AI to understand to predict the move which has more likely to win

About

Tic Tac Toe React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published