The game of NIM in Wombat

Hello there, so basically I have to write a programme for a Nim game in Wombat.
This wombat programme will play interactively
against a human opponent and win, if it starts. At the beginning the user should
be able to input the numbers of stones.

The key problem in the algorithm is taking the bitwise XOR of the num-
bers of stones. So let's say I assume that there is a maximum number of
stones in each pile (say 15).
And I think use of subroutines is important as well.

Any help would be great appreciated.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion