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.
- Host: GitHub
- URL: https://github.com/projectbarks/tictactoe
- Owner: ProjectBarks
- Created: 2017-04-24T03:25:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-02T03:04:36.000Z (over 8 years ago)
- Last Synced: 2025-01-14T14:46:08.107Z (about 1 year ago)
- Topics: materialui, minimax-algorithm, react
- Language: JavaScript
- Homepage: http://brandonbarker.me/tictactoe/
- Size: 1000 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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