Skip to content

rommsen/elm-dots-and-boxes

Repository files navigation

Elm Dots and Boxes

I build this project as a learning project to learn Elm. I am more than happy for any reviews or ideas where and how to improve.

What is it doing?

It is an online multiplayer implementation of Dots and Boxes.

Why do I think it is cool?

  • Multiplayer: up to five players!
  • Spectator-Mode: watch games of other players
  • many different board sizes
  • turn timer to keep the game going

Thats cool, can I play it online?

Yes please: https://elm-dots-and-boxes.firebaseapp.com/

How to play?

  • enter your name
  • open a new game (choose box size or turn timer) or
  • join an open game and wait for acceptance or
  • watch an open or running game
  • when opened: wait for other players and accept them (up to five) then
  • start a new game
  • when joined: wait for acceptance, when not accepted and game started you can watch the game
  • when the owner of the game abandons the game, the other players are informed and can get back to the lobby
  • play

What is it based on?

Nice what else did you do in elm?

Getting started

Installation

You need to have Elm 0.18 installed on your machine.

If you have yarn installed (you should) you can just run

yarn run installation

Otherwise do the following:

Install JS dependencies with:

[yarn|npm] install

Install Elm dependencies with:

elm package install

Running

Start webpack-dev-server (recompiles when files change)

[yarn|npm] run start   

Then view it:

localhost:8080

About

Multiplayer Dots and Boxes build in Elm. Up to 5 players and spectator mode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published