Coder Social home page Coder Social logo

robbery's Introduction

The Great Train Robbery Engine

TGTRE is a card game engine that lets you write exciting Old West train robbery games!

One player plays the Pinkerton security company and acts as the police for the railroads. Other players play gang leaders and try to rob the trains for loot and infamy.

One of the interesting dynamics of the game is the Pinkerton player gets more resources but they also have to protect all of the trains.

Usage

You'll need to know some Ruby but the engine is fairly simple.

The basic game turns would follow this outline:

  • Create a Robbery::Game object.
  • Add some players.
  • Generate trains. (game turn loop starts here)
  • Draw cards for players.
  • Let players place their cards in secret.
  • Process intel cards and let players move if they have one.
  • Reveal the cards and do battle.
  • Show the battle results and update the winners' scores.
  • Check for victory conditions and if not start over at generate trains.

The best way to understand how to use the engine is to take a look at the examples/example_game.rb file. It will walk you through configuring a game and what's involved in a turn.

robbery's People

Contributors

mikbe avatar practicingruby avatar

Stargazers

 avatar

Watchers

Andrea Singh avatar Andrew Cox avatar Greg Miklaszewski avatar Artem Yankov avatar  avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.