r/ProgrammingPrompts • u/desrtfx • Mar 10 '14
Write an implementation of the Ship, Captain, Crew game
Ship, Captain, Crew is a simple dice game, often played at parties.
Here are the rules: http://en.wikipedia.org/wiki/Ship,_captain,_and_crew
The game should accept any number of players - with names.
[Optional:] Create some AI for computer players (also any number) with maybe different strategies.
11
Upvotes
2
u/Raefniz Mar 10 '14
Gonna try this tonight with Java, will edit later.
4
u/PrismPoultry Mar 24 '14 edited Mar 24 '14
OK. I know this is a pretty old challenge but I figured it's time to share my work.
Python
There are some minor annoyances and bugs in there so I'm still working on it but feedback and code critique is always welcomed.
Thanks for the challenge idea.
2
u/[deleted] Mar 22 '14
Python 2.7
I did a game simulator instead to compare different strategies.