Skip to content

Implementing extra improvements for the awesome Tic-Tac-Toe React tutorial.

Notifications You must be signed in to change notification settings

mmartinsson/react-tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Improvements for Tic-Tac-Toe React tutorial

This is my solution for the extra improvements suggested at the end of this awesome Tutorial: Intro to React.

Check the site out at https://mmartinsson.github.io/react-tic-tac-toe/

Original improvements

In case the original page gets changed these were the improvements when I played around with them. They are in order of increasing difficulty:

  1. Display the location for each move in the format (col, row) in the move history list. Issue #2
  2. Bold the currently selected item in the move list. Issue #3
  3. Rewrite Board to use two loops to make the squares instead of hardcoding them. Issue #4
  4. Add a toggle button that lets you sort the moves in either ascending or descending order. Issue #5
  5. When someone wins, highlight the three squares that caused the win. Issue #6
  6. When no one wins, display a message about the result being a draw. Issue #7

My own Improvements

I also did some improvements of my own. See the other Issues

Deploy

To deploy to GitHub pages:

npm run deploy

About

Implementing extra improvements for the awesome Tic-Tac-Toe React tutorial.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published