Skip to content

Automatically play through a CandyLand so you don't have to!

License

Notifications You must be signed in to change notification settings

jkingsman/CandlyandAutoplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autoplayer for Candyland

I wanted to try my hand at writing Go, a language I have zero experience in. This is probably a disaster from a code perspective and is obviously dumb in terms of what it does, but it's a playground for me to learn some more about the language.

Usage

go run candlyand.go Francine Bucky Michael Robert

Example

go run candlyand.go Francine Bucky Michael Robert
Welcome to Candyland!

Players:
1. Francine
2. Bucky
3. Michael
4. Robert

Let's play!

=========================

Draw 0: Francine has drawn a yellow card. They advance to square 2.
Draw 1: Bucky has drawn a purple card. They advance to square 1. And it's a double! They advance to square 7.
Draw 2: Michael has drawn a green card. They advance to square 5.
Draw 3: Robert has drawn a purple card. They advance to square 1.
Draw 4: Francine has drawn a purple card. They advance to square 7.
Draw 5: Bucky has drawn a red card. They advance to square 13.
Draw 6: Michael has drawn a yellow card. They advance to square 9.
Draw 7: Robert has drawn a blue card. They advance to square 3.
Draw 8: Francine has drawn a green card. They advance to square 12.
Draw 9: Bucky has drawn a blue card. They advance to square 16.
Draw 10: Michael has drawn a yellow card. They advance to square 15.
Draw 11: Robert has drawn a Frostine card! They jump to square 105. 
Draw 12: Francine has drawn a green card. They advance to square 19. And it's a double! They advance to square 26.
Draw 13: Bucky has drawn a green card. They advance to square 19. And it's a double! They advance to square 26.
Draw 14: Michael has drawn a yellow card. They advance to square 22.
Draw 15: Robert has drawn a orange card. They advance to square 108.
Draw 16: Francine has drawn a Candy Cane card! They jump to square 17. 
Draw 17: Bucky has drawn a orange card. They advance to square 32.
Draw 18: Michael has drawn a Gramma Nut card! They jump to square 76. 
Draw 19: Robert has drawn a blue card. They advance to square 113.
Draw 20: Francine has drawn a yellow card. They advance to square 22. And it's a double! They advance to square 29.
Draw 21: Bucky has drawn a orange card. They advance to square 38. And it's a double! They advance to square 45.
Draw 22: Michael has drawn a orange card. They advance to square 82.
Draw 23: Robert has drawn a blue card. They advance to square 119.
Draw 24: Francine has drawn a purple card. They advance to square 30.
Draw 25: Bucky has drawn a purple card. They advance to square 48. And it's a double! They advance to square 54.
Draw 26: Michael has drawn a red card. They advance to square 84.
Draw 27: Robert has drawn a purple card. They advance to square 123.
Draw 28: Francine has drawn a purple card. They advance to square 35. This is a shortcut square! They take the Gumdrop Pass to square 48.
Draw 29: Bucky has drawn a blue card. They advance to square 56.
Draw 30: Michael has drawn a orange card. They advance to square 88.
Draw 31: Robert has drawn a Gum Drop card! They jump to square 44. 
Draw 32: Francine has drawn a yellow card. They advance to square 49.
Draw 33: Bucky has drawn a Lollipop card! They jump to square 97. 
Draw 34: Michael has drawn a orange card. They advance to square 94.
Draw 35: Robert has drawn a yellow card. They advance to square 49.
Draw 36: Francine has drawn a orange card. They advance to square 51.
Draw 37: Bucky has drawn a yellow card. They advance to square 99. And it's a double! They advance to square 106.
Draw 38: Michael has drawn a blue card. They advance to square 100.
Draw 39: Robert has drawn a red card. They advance to square 53. And it's a double! They advance to square 59.
Draw 40: Francine has drawn a green card. They advance to square 52.
Draw 41: Bucky has drawn a red card. They advance to square 110.
Draw 42: Michael has drawn a blue card. They advance to square 107. And it's a double! They advance to square 113.
Draw 43: Robert has drawn a purple card. They advance to square 60.
Draw 44: Francine has drawn a blue card. They advance to square 56.
Draw 45: Bucky has drawn a green card. They advance to square 115.
Draw 46: Michael has drawn a yellow card. They advance to square 118.
Draw 47: Robert has drawn a blue card. They advance to square 62.
Draw 48: Francine has drawn a red card. They advance to square 59.
Draw 49: Bucky has drawn a red card. They advance to square 116.
Draw 50: Michael has drawn a green card. They advance to square 121.
Draw 51: Robert has drawn a red card. They advance to square 64.
Draw 52: Francine has drawn a red card. They advance to square 64. And it's a double! They advance to square 70.
Draw 53: Bucky has drawn a blue card. They advance to square 119. And it's a double! They advance to square 125.
Draw 54: Michael has drawn a yellow card. They advance to square 124.
Draw 55: Robert has drawn a red card. They advance to square 70.
Draw 56: Francine has drawn a red card. They advance to square 78.
Draw 57: Bucky has drawn a Sugar Plum card! They jump to square 8. 
Draw 58: Michael has drawn a orange card. They advance to square 126. And it's a double! They advance to square 132.
Draw 59: Robert has drawn a green card. They advance to square 77.
We've hit the end of the deck. Shuffling it again!
Draw 60: Francine has drawn a yellow card. They advance to square 80. And it's a double! They advance to square 86.
Draw 61: Bucky has drawn a blue card. They advance to square 10.
Draw 62: Michael has drawn a yellow card. There are no more squares of that color, so MICHAEL WINS!

About

Automatically play through a CandyLand so you don't have to!

Resources

License

Stars

Watchers

Forks

Languages