Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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