
25 Oct
2009
25 Oct
'09
4:27 p.m.
Hi John, I'm not sure how much experience you have with Haskell, but there is a general problem-solving principle: solve a simpler problem first. For example, you could write a version of this that uses only one pile of stones. You will still have to create a loop, exit condition, prompt and read, and basic things like that. Once those are solved, then you can turn your attention to arrays. -Mike John Moore wrote:
Hi All, I'm attempting to write a program for the game nim.