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

https://github.com/projectbarks/tictactoe

A simple ReactJS implementation of TicTacToe it utilizes MaterializeUI and a Minimax algorithm to properly play through a game always winning or tie-ing.
https://github.com/projectbarks/tictactoe

materialui minimax-algorithm react

Last synced: 11 months ago
JSON representation

A simple ReactJS implementation of TicTacToe it utilizes MaterializeUI and a Minimax algorithm to properly play through a game always winning or tie-ing.

Awesome Lists containing this project

README

          

# Tic Tac Toe


A preview of the game of Tic Tac Toe

This is a ReactJS implemention of a classic came — TicTacToe. While it was built as a fun side project exploring the MiniMax algorithm it also was a fun way to try out some new React libraries. If you are interested in trying the game and its primitive compleition it is available [here](http://brandonbarker.me/tictactoe/).

### Features

* Minimalistic Game
* An AI that will always Win or Tie
* Runs completely In-Browser requiring no server.

### Available Scripts

In the project directory, you can run:

#### `npm start`

Runs the app in the development mode.
Open [http://localhost:3000](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 test`

Launches the test runner in the interactive watch mode.

#### `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!

### Demo

If you are interested in trying the application or running a demo of what currently works you can go [here](http://brandonbarker.me/tictactoe/). Some features were never completed since this was for fun but feel free to submit a pull request to make your own changes or add features.

### Libraries and Tools

* [ReactJS](https://reactjs.org/) - Used to create the UI and simplistically handle game updates
* [React Transition Group](https://github.com/reactjs/react-transition-group) - Game piece animation and interaction
* [Material UI](http://www.material-ui.com/) - Basic components and icons