Sashite::GAN

Implementation of General Actor Notation for storing actors from abstract strategy games.

Status

Gem Version Build Status

Installation

Add this line to your application's Gemfile:

gem 'sashite-gan'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sashite-gan

Usage

require 'sashite-gan'

actor = Sashite::GAN::Actor.new 2,
  'bc096c4c7f48fc5c4c162555e4df98169e204aea', 'top', 'xianqi', 'rook'
actor.to_gan # => '2:bc096c4c7f48fc5c4c162555e4df98169e204aea:top:xianqi:rook'

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request