Last active
December 17, 2015 07:09
-
-
Save isaacabraham/5571108 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let calculateMove position = | |
match position with | |
| GoToJail -> Some Jail // option type - some Position, in this case Jail | |
| Chance -> randomChancePosition // draws a random Chance card which may or may not be a movement card | |
| CommunityChest -> randomCommunityChestPosition // as above | |
| _ -> None // return nothing back |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment