Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xand6r/multiplayer-tic-tac-toe
A Vue.js and Node.js of an online multiplayer and single player of tic-tac-toe against an AI agent. it runs without internet as well with service workers, challenge your friends online or play against an AI
https://github.com/xand6r/multiplayer-tic-tac-toe
Last synced: 10 days ago
JSON representation
A Vue.js and Node.js of an online multiplayer and single player of tic-tac-toe against an AI agent. it runs without internet as well with service workers, challenge your friends online or play against an AI
- Host: GitHub
- URL: https://github.com/xand6r/multiplayer-tic-tac-toe
- Owner: Xand6r
- Created: 2019-01-25T10:05:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T11:30:03.000Z (almost 2 years ago)
- Last Synced: 2024-04-24T03:18:50.214Z (7 months ago)
- Language: JavaScript
- Homepage: https://hexano.herokuapp.com
- Size: 1.11 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# multiplayer-tic-tac-toe
A Vue.js and Node.js of an online multiplayer and single player of tic-tac-toe against an AI agent. it runs without internet as well with service workers.
## The AI agent uses a policy that views the screen and is trained on every possible scenerios and the favourable output, it then predicts an output for every state of the board, when it is time for computer to play, the model predict based on what i have trained it with.the code for the intelligent agent can be found in `public/js/script.js`
### running and setting up the application
(1) firstly run `npm install` in the root folder of the project
(2) then run `node index.js` : it then brings out the port o which the server as been started
(3) open your browser and go to the adress http://localhost:'port'
note: 'port' should be replaced by the port which the server is set to run on.### playing the game
it should be noted that there is a multiplayer mode too, implemented using vue.js and socket.io for real time playing between two Players