Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dckc/snakes-ladders
https://github.com/dckc/snakes-ladders
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dckc/snakes-ladders
- Owner: dckc
- Created: 2017-04-13T06:47:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-13T07:21:06.000Z (over 7 years ago)
- Last Synced: 2024-10-30T19:46:03.367Z (2 months ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snakes and Ladders
by Dan Connolly
ref
[CPS506 - Comparative Programming Languages - Winter 2017](http://cps506.sarg.ryerson.ca/)
[Assignment 4 - Rust](http://cps506.sarg.ryerson.ca/w2017/Assignments/a4.html)Sample input:
board 3 4
players 2
dice 1 2 2 2 2
ladder 5 11
snake 8 4
powerup escalator 6 9
powerup antivenom 7
powerup double 4
turns 10Resulting output:
+---+---+---+
| 12| 11| 10|
|B | | |
+---+---+---+
| 7| 8| 9|
| a | S| e |
+---+---+---+
| 6| 5| 4|
| e | L|Ad |
+---+---+---+
| 1| 2| 3|
| | | |
+---+---+---+
Player B won