tjweir / haskell-tic-tac-toe

An multiplayer web real-time implementation of the famous Tic Tac Toe game in Haskell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic Tac Toe

Game

A very basic web multiplayer real-time game implemented using Servant and Websockets. It can serve as an example on how to set up websockets with authentication in your Servant app.

Running it locally

You need to have stack installed together with npm.

Running the server

In the root folder of the repository, run stack run.

Running the client

While inside the client folder, run npm run start.

Contributing

There are a few TODOs at the bottom of this readme. Feel free to tackle some of those or submit any improvements that you think make sense.

License

This project is licensed under the MIT License.


TODOs

  1. When a new user logs in, the "Available players" list should be updated in real time.
  2. Users should be invalidated after a certain amount of time has passed without them being active.
  3. When a person leaves the game/loses connection, the game should stop.

About

An multiplayer web real-time implementation of the famous Tic Tac Toe game in Haskell.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 53.8%Language:JavaScript 36.8%Language:CSS 6.3%Language:HTML 3.0%