Nim Simple Guessing Game
About
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.
- Error when entering non-numbers into entry box. - Fixed for the most part (can't detect when a non-number is used with a number, only when there isn't a number present).
- 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 :)
System requirements for PC
Last Modified: Feb 13, 2023
Where to buy
itch.io