GithubHelp home page GithubHelp logo

asemarian / tic-tac-toe Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 72 KB

Multiplayer tic-tac-toe game

Home Page: http://websocket-tictactoe.herokuapp.com/

License: MIT License

JavaScript 61.56% HTML 15.13% CSS 23.31%
game socket-io websocket nodejs javascript express

tic-tac-toe's Introduction

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

tic-tac-toe's People

Contributors

asemarian avatar

Stargazers

Malek Abdalamgeed avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.