Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.
/ Mahjong Public archive

Mahjong solitaire as a Rails app.

Notifications You must be signed in to change notification settings

cheshire137/Mahjong

Repository files navigation

Mahjong

An implementation of Mahjong solitaire as a Rails app.

How to Develop

You'll need Ruby 2+ and PostgreSQL.

First Time Setup

bundle install
bundle exec rake db:create db:migrate
bundle exec rake db:seed

Every Time

bundle exec rails s

How to Test

bundle install
RAILS_ENV=test bundle exec rake test

How Tiles are Positioned

X coordinates are in black horizontally across the top, y coordinates are in pale blue vertically along the left, and z coordinates are in yellow. See the coordinates in layouts/turtle.txt.

Tile position diagram

Thanks