Created
August 20, 2012 12:10
-
-
Save tadzik/3403611 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
┌─[tadzik@yavin4]─[~/src/perl/farm] (master)* | |
└─[%]─> perl6 -I. farm.pl ai Example | |
Round 1 | |
Roll: rabbit and rabbit | |
{"rabbit" => 1} went from stock to player_1 | |
Round 2 | |
Roll: rabbit and rabbit | |
{"rabbit" => 1} went from stock to player_1 | |
Round 3 | |
Roll: horse and sheep | |
Round 4 | |
Roll: horse and wolf | |
{"rabbit" => 2} went from player_1 to stock | |
Round 5 | |
Roll: rabbit and rabbit | |
{"rabbit" => 1} went from stock to player_1 | |
Round 6 | |
Roll: rabbit and rabbit | |
{"rabbit" => 1} went from stock to player_1 | |
Round 7 | |
Roll: horse and rabbit | |
{"rabbit" => 1} went from stock to player_1 | |
Round 8 | |
Roll: sheep and pig | |
Round 9 | |
Roll: rabbit and sheep | |
{"rabbit" => 2} went from stock to player_1 | |
Round 10 | |
Roll: rabbit and cow | |
{"rabbit" => 3} went from stock to player_1 | |
Round 11 | |
Roll: rabbit and rabbit | |
{"rabbit" => 5} went from stock to player_1 | |
Round 12 | |
{"rabbit" => 6} went from player_1 to stock | |
{"small_dog" => 1} went from stock to player_1 | |
Roll: fox and rabbit | |
{"small_dog" => 1} went from player_1 to stock | |
{"rabbit" => 4} went from stock to player_1 | |
Round 13 | |
Roll: horse and rabbit | |
{"rabbit" => 6} went from stock to player_1 | |
Round 14 | |
{"rabbit" => 6} went from player_1 to stock | |
{"small_dog" => 1} went from stock to player_1 | |
Roll: rabbit and cow | |
{"rabbit" => 6} went from stock to player_1 | |
Round 15 | |
{"rabbit" => 6} went from player_1 to stock | |
{"sheep" => 1} went from stock to player_1 | |
Roll: rabbit and rabbit | |
{"rabbit" => 6} went from stock to player_1 | |
Round 16 | |
{"rabbit" => 6} went from player_1 to stock | |
{"sheep" => 1} went from stock to player_1 | |
Roll: rabbit and rabbit | |
{"rabbit" => 6} went from stock to player_1 | |
Round 17 | |
{"rabbit" => 6} went from player_1 to stock | |
{"sheep" => 1} went from stock to player_1 | |
Roll: horse and rabbit | |
{"rabbit" => 6} went from stock to player_1 | |
Round 18 | |
{"sheep" => 2} went from player_1 to stock | |
{"pig" => 1} went from stock to player_1 | |
Roll: rabbit and cow | |
{"rabbit" => 9} went from stock to player_1 | |
Round 19 | |
{"rabbit" => 6} went from player_1 to stock | |
{"sheep" => 1} went from stock to player_1 | |
Roll: rabbit and pig | |
{"rabbit" => 10, "pig" => 1} went from stock to player_1 | |
Round 20 | |
{"rabbit" => 6} went from player_1 to stock | |
{"sheep" => 1} went from stock to player_1 | |
Roll: horse and sheep | |
{"sheep" => 2} went from stock to player_1 | |
Round 21 | |
{"sheep" => 2} went from player_1 to stock | |
{"pig" => 1} went from stock to player_1 | |
Roll: rabbit and rabbit | |
{"rabbit" => 13} went from stock to player_1 | |
Round 22 | |
{"sheep" => 2} went from player_1 to stock | |
{"pig" => 1} went from stock to player_1 | |
Roll: sheep and pig | |
{"sheep" => 1, "pig" => 2} went from stock to player_1 | |
Round 23 | |
{"pig" => 3} went from player_1 to stock | |
{"big_dog" => 1} went from stock to player_1 | |
Roll: rabbit and rabbit | |
{"rabbit" => 19} went from stock to player_1 | |
Round 24 | |
{"rabbit" => 6} went from player_1 to stock | |
{"sheep" => 1} went from stock to player_1 | |
Roll: horse and pig | |
{"pig" => 2} went from stock to player_1 | |
Round 25 | |
{"pig" => 3} went from player_1 to stock | |
{"cow" => 1} went from stock to player_1 | |
Roll: sheep and pig | |
{"sheep" => 2, "pig" => 1} went from stock to player_1 | |
Round 26 | |
{"sheep" => 2} went from player_1 to stock | |
{"pig" => 1} went from stock to player_1 | |
Roll: rabbit and sheep | |
{"rabbit" => 10, "sheep" => 2} went from stock to player_1 | |
Round 27 | |
{"pig" => 3} went from player_1 to stock | |
{"cow" => 1} went from stock to player_1 | |
Roll: rabbit and rabbit | |
Round 28 | |
{"sheep" => 2} went from player_1 to stock | |
{"pig" => 1} went from stock to player_1 | |
Roll: rabbit and sheep | |
{"sheep" => 2} went from stock to player_1 | |
Round 29 | |
{"sheep" => 2} went from player_1 to stock | |
{"pig" => 1} went from stock to player_1 | |
Roll: rabbit and wolf | |
{"big_dog" => 1} went from player_1 to stock | |
Round 30 | |
{"sheep" => 2} went from player_1 to stock | |
{"pig" => 1} went from stock to player_1 | |
Roll: rabbit and rabbit | |
Round 31 | |
{"pig" => 3} went from player_1 to stock | |
{"big_dog" => 1} went from stock to player_1 | |
Roll: sheep and pig | |
{"sheep" => 1, "pig" => 1} went from stock to player_1 | |
Round 32 | |
{"rabbit" => 6} went from player_1 to stock | |
{"sheep" => 1} went from stock to player_1 | |
Roll: rabbit and rabbit | |
{"rabbit" => 6} went from stock to player_1 | |
Round 33 | |
{"sheep" => 2} went from player_1 to stock | |
{"pig" => 1} went from stock to player_1 | |
Roll: rabbit and rabbit | |
Round 34 | |
{"rabbit" => 6} went from player_1 to stock | |
{"sheep" => 1} went from stock to player_1 | |
Roll: sheep and pig | |
{"sheep" => 1, "pig" => 2} went from stock to player_1 | |
Round 35 | |
{"pig" => 3} went from player_1 to stock | |
{"cow" => 1} went from stock to player_1 | |
Roll: horse and rabbit | |
{"rabbit" => 6} went from stock to player_1 | |
Round 36 | |
{"cow" => 2} went from player_1 to stock | |
{"horse" => 1} went from stock to player_1 | |
player_1 won! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment