Skip to content

saadbinakhlaq/snakes_and_ladders_game

Repository files navigation

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.

About

A simple implementation of snakes and ladders game in ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published