Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 811 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 811 Bytes

Camel Calculator

My friend group does enjoy some Camel Up. But when you want to get a leg up on your opponents by knowing the outcome on the current leg, you need the Camel Calculator.

Navigate to the python folder and you can execute the script. To pass in camel positions, use the -s <start_positions_string> argument.

The start positions string is expected to be one or more pairs of the color key to its position. Omitted colors are implied to be at position 0. The string -p b0w1y2o3g4 would be a valid start string. Because camels stack, the later in the string, the higher in the stack.

$ python3 camels.py -p b1w0g0y2o1
Results (29160 total wins in 1.845 seconds):
W |  3756 wins | 12.88%
Y |  4352 wins | 14.92%
O |  7784 wins | 26.69%
G |  9124 wins | 31.29%
B |  4144 wins | 14.21%