Home

Awesome

Last Stick Loses

Introduction

Last Stick Loses is a pen-and-paper game where a pyramid of sticks is drown as the board

2 players take turns to strike out adjacent sticks. Each player must strike out at least one stick in each turn and she can strike as many as she wants as long as they are on the same row. The player who strikes the last stick loses the game.

Example

BoardP1 TurnP2 TurnP1 TurnP2 TurnP1 Turn
I I I I I +
I I I I I I I + +-+ +-+
I I I I I I +-+-+ +-+-+ +-+-+ +-+-+
I I I II +-+-+I +-+-+I +-+-+I +-+-+I +-+-+
P2 lost the game

This application

This project is an Erlang application that hosts a RESTful API through which you can play Last Stick Loses either against a machine (also coded in Erlang) or against another user.

Additional Goals

This project will also be used as an excercise for those candidates who want to work at Inaka

RESTful API

Check the documentation of the system's RESTful API in its own file.

Contact Us

If you find any bugs or have a problem while using this library, please open an issue in this repo (or a pull request :)).

And you can check all of our open-source projects at inaka.github.io