Skip to content

Macpeters/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App and follows a tic tac toe tutorial on https://reactjs.org/tutorial/tutorial.html#completing-the-game

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

TODO: beyond the tutorial

  • Rewrite Board to use loops to make the squares instead of hardcoding them.
  • break up the components so things are more readable (probably requires webpack)
  • When someone wins, highlight the three squares that caused the win.
  • When no one wins, display a message about the result being a draw.
  • Display the location for each move in the format (col, row) in the move history list.