Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lablnet/tictactoe
A Tic Tac Toe game using Minimax algorithm
https://github.com/lablnet/tictactoe
javascript minimax-algorithm mit-license tic-tac-toe webpack
Last synced: about 1 month ago
JSON representation
A Tic Tac Toe game using Minimax algorithm
- Host: GitHub
- URL: https://github.com/lablnet/tictactoe
- Owner: lablnet
- License: mit
- Created: 2021-05-16T14:00:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T07:32:36.000Z (almost 2 years ago)
- Last Synced: 2023-03-06T21:36:28.766Z (almost 2 years ago)
- Topics: javascript, minimax-algorithm, mit-license, tic-tac-toe, webpack
- Language: JavaScript
- Homepage: https://lablnet.github.io/TicTacToe/
- Size: 296 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Overview
A Tic Tac Toe game using Minimax algorithm## Purpose
To understand how things works underneath the hood.## Todo
- [x] initialize the project.
- [x] Add `js` and `scss` using webpack.
- [x] Game win, lose and tie state.
- [x] Add `minimax` algorithm.
- [ ] Splash screen
- [ ] Support for n*n board
- [ ] Multiplayer support
- [ ] Different levels
- [ ] Add sound/beeps## Install
- First clone the repo `git clone https://github.com/Lablnet/TicTacToe`
- Now run `npm install` to install dependencies
- Now build `npm run build` or watch if you making changes `npm run watch`## File Structure
- `src/js/`
- `Board.js` Contain code to generate dynamic board.
- `Screen.js` Code for screens like splash, game board and game over.
- `Play.js` Code to play game detect user clicks mark on board, logic for game over and who win.
- `AI.js` Computer turn move using minmax.
- `App.js` Usage of above classes and import SCSS Style-sheet.
- `src/scss/`
- `App.scss` Style-sheet file
- `index.html` Base HTML file.
- `public/build.js`JavaScript build file## Contributions
There is still a lot of work to do, so feel free to contribute to open `PR`## License
MIT## Support
Donate coffee?
here is the bitcoin address
[![Balance](https://img.balancebadge.io/btc/37x6PA4qtPu2fQnYdW5U7jztYhbchASpBV.svg)](https://img.balancebadge.io/btc/37x6PA4qtPu2fQnYdW5U7jztYhbchASpBV.svg)```37x6PA4qtPu2fQnYdW5U7jztYhbchASpBV```
Thanks you so much.