A simple "Guess the number" game.There is an option to exactly guess from 1 to 10 ,or guess if the next number is Lower,Equal or Higher than the current from 0 to 100.
Here is the information for the starting window,which only gives you the option to choose to play "Guess the Number" or "Higher,Lower,Equal"(that are different classes).
Starts the "Number Guesser"game where you have to guess a random number from 1 to 10.You also have 10 lives and you lose lives for every wrong guess,based on the absolute value when you substract the right number from the number guessed.After every guess a new right number is generated.If you have guessed right you heal 5 lives.
Wrong Guess
The Window when you have 0 lives
There is also UppercaseDocumentFilter class that restricts you to write only digits from 0 to 9.
Here you get a random number and you have to guess if the next one is going to be of higher,equal or lower value.The range of the numbers here is from 0 to 100 and you have 50 lives instead(because you can lose more),you lose lives based on the difference between the random number and the previus number if you have guessed wrong.
When you fail
You can try the program at out/artifacts/...