Comments
A very simple number guessing game written in Nim using NiGui. I started learning Nim today, and made this the same day. Bugs include:
Answer is always 88 (rand() function messing up, will look into this) - Still no idea how to make is actually random. Now it's always 3?!
Scrolling scrolls the whole window contents instead of submitted answers. There is no documentation of NiGui yet so I have no idea how to change this.
No replay button. As far as I know, NiGui doesn't support clearing containers' children, so if I were to make a replay button it would just restart the program. - Made a quit button after winning, as I still cannot find a way to clear children of containers.
Please report any more bugs!
Source code - https://github.com/ostanton/NimSimpleGuessingGame
As of version 0.1.2, the console no longer opens with the program. It's its own little thing :)
As of version 0.1.3, non-numbers are now fully knowledgable as non-numbers and show a message box instead of crashing.