[go: up one dir, main page]

Skip to content

altenwald/leprechaun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leprechaun

build status

Leprechaun is a game based on Gems of War, the Threasure Hunt.

The base of the game is swap pieces, only one each time and only with the ones in north, south, east or west of the source one. The combinations should be made by 3 or more in vertical or horizontal way. If you achieve to match 4 then you won't loose a turn and if you achieve match more than 4 then you'll obtain an extra turn. The game starts with 10 turns and ends when you run out of turns.

If you love this content and want we can generate more, you can support us:

paypal

Checking code

The source code has implemented different tools to ensure we are arriving to a minimal internal quality, that's because we are working to get the output of this command green:

mix check

Installation

It's easy to install. You only needs to have Elixir installed and run this to obtain the code:

git clone git@github.com:altenwald/leprechaun.git

Because we use Ecto and Mnesia to store the high scores you'll need to run these tasks before:

mix do ecto.create, ecto.migrate

Then you can see there are a new directory in that path called leprechaun. You can go inside using the terminal and write:

iex -S mix run

The Elixir shell will be running after the compilation. You can start the game using this command:

Leprechaun.Console.run :mygame

Follow the instructions and enjoy!

Web Interface

Version 0.2 has a new addition and it's cowboy and jason among others to provide an HTTP interface to let us to play via web.

Version 1.0 has been a rewrite of the website using Phaser3

Leprechaun WebGame

You only need to run the project as showed above (in the previous section) and then access via this link:

http://localhost:4012

You can change the configuration to listen in another port and even to use IPv6 instead.

Enjoy!