colemanja91 / isolationgames

Play card games while you're in isolation!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Requirements

  • Ruby 2.6.2
  • Docker Compose (to run locally)

Setup

bin/setup

Then, in Rails console:

require './db/transitions/load_cards_from_json.rb'
LoadCardsFromJson.run

Credentials

Need to set up the following:

  • config/credentials/test.key
  • config/credentials/development.key
  • config/master.key

Testing locally

Be sure to enable caching for OAuth to work:

rails dev:cache

There are a bunch of rake tasks to simulate actions from other users.

To see them, run rake --tasks, and look for rake game:.....

For most games, these are the three common tasks:

rake game:new_player # add new player to the game
rake game:play_cards # all players other than local account and judge submit cards
rake game:judge_winner # judge randomly picks a winner
rake game:new_round # Start a new round

About

Play card games while you're in isolation!


Languages

Language:Ruby 66.2%Language:JavaScript 28.2%Language:HTML 3.8%Language:SCSS 1.3%Language:CSS 0.5%Language:Shell 0.0%