Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 740 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 740 Bytes

SnakesAndLaddersGame

Installation

Clone this repo and then run

$ gem build snakes_and_ladders_game.gemspec

And then execute:

$ gem install snakes_and_ladders_game-0.1.0.gem

Then go to irb or pry console $ pry

Usage

require 'snakes_and_ladders_game'

player1 = Player.new 'player1'
player2 = Player.new 'player2'
game = Game.new [player1, player2]
game.play_turn

If you would like to simulate the game and see who wins

game.simulate

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/saadbinakhlaq/snakes_and_ladders_game.

License

The gem is available as open source under the terms of the MIT License.