Skip to content

asemarian/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiplayer Tic Tac Toe

A simple implementation of a multiplayer tic tac toe game using Socket.IO, plain JavaScript on the client-side, Node (and Express) on the server-side.

Click here to give it a try and don't forget to invite a friend to play against you!

Tic-tac-toe screenshot

Description

I made this for fun. Wanna play tic-tac-toe against a friend? Start a new game and share the generated game ID with them. Once you start a new game and another player joins, you can play any number of subsequent games as long as both players are still online. This was made possible thanks to the awesome Socket.IO library which makes event-based realtime bi-directional communication a breeze. I decided to use vanilla JavaScript to manipulate the DOM directly instead of a client-side framework for this project.

Technologies and libraries used:

  • JavaScript
  • Socket.IO
  • Express

Getting Started

Dependencies

  • You must have Node and npm installed locally on your machine.

Installing

  • Clone the repo
  • Download the project dependencies: npm install
  • Start the server: npm server.js

Authors

Contributing

Contributions are definitely welcome! Just follow these steps:

  • Fork the project
  • Clone it locally: git clone https://github.com/yourUserName/yourRepoName.git
  • Install dependencies: npm install
  • Create a new branch: git switch -c yourBranchName
  • Add then commit your changes: git commit -m "yourCommitMessage"
  • Push your new code: git push origin yourBranchName
  • Open a pull request!

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments