cd228 wrote:
Hi. Remember to edit the author name at the top of the script.
Currently I stand as the author
Ah yes. That clearly was my tribute to you for your great inspiration to me, and not my incompetence in code writing.
Thank's doti for updating.
cd228 wrote:
I haven't had time to look at the code, but does the difficulties do something about the AI?
As said there are winning strategies for Nim, especially for the simple version implemented here. This works both ways. If you know what you are doing and play perfectly on the lower difficulties you can win. As the difficulty increases then if you make a mistake then the chances are the AI will beat you. That is also the reason why on 'Hard' difficulty both the number of counters and who starts is randomised as that affects potential winner.