[Tutor] The game of nim in python
Dave Angel
davea at davea.name
Thu Apr 4 16:55:38 CEST 2013
On 03/27/2013 08:30 AM, Yasin El Guennouni wrote:
>
> Hello,
>
> I am trying to modify a game of nim code. The game in the code works as:
> "You need to remove from 1 to 3 straws from the pile.
> The player that removes the final straw is the loser."
>
> But I would like it to be like the classic game, where you have 4 piles containing 1,3,5 and 7 sticks
> where the drawer of the last stick is the winner. It would be awsome if I could print how
> many sticks there are left in each pile, e.g. : I III IIIII IIIIIII.
>
In my opinion, you'd have to modify so much that you'd probably be
better off starting from scratch.
--
DaveA
More information about the Tutor
mailing list