An open API service indexing awesome lists of open source software.

https://github.com/AmielCyber/tdd-tic-tac-toe

Test Driven Development Tic Tac Toe Demo with Jest.
https://github.com/AmielCyber/tdd-tic-tac-toe

dark-theme jest light-theme react react-testing-library test test-driven-development tic-tac-toe typescript unit-testing usereducer

Last synced: 8 months ago
JSON representation

Test Driven Development Tic Tac Toe Demo with Jest.

Awesome Lists containing this project

README

          

# tdd-tic-tac-toe

## Description

To celebrate my first year using React, I build a Tic-Tac-Toe based on the first project I ever did with React.
This project is a test driven development using React Testing Library and Jest. Unlike the first project, this
project has better styling and many other features mentioned below.

## Demo

### [Live Demo](http://AmielCyber.github.io/tdd-tic-tac-toe)

### Screenshots

#### Light Theme

![Light Theme Desktop Preview](/assets/desktopLight.png)

#### Dark Theme

![Dark Theme Desktop Preview](/assets/desktopDark.png)

### Mobile Demo
![Mobile Preview](/assets/mobileDemo.gif)

## Features

- [x] Game class to track state of a game.
- [x] User can go to a previous game state.
- [x] useReducer is used to keep track an array of Game states that have been played.
- [x] Components and useReducer functions are fully tested and contain their own test file `.test`.
- [x] Game displays which player is next and if the game is over.
- [x] Users can choose to display or not to display previous games.
- [x] Play Again button appears when the game is over and when clicked it resets the game.
- [x] Compatible for mobile devices.
- [x] Compatible for accessibility.
- [x] Compatible for user system's theme preference (Light or Dark theme).