Sashite::GAN
Implementation of General Actor Notation for storing actors from abstract strategy games.
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request