Guessing numbers with swift
Click Start Game
The number will be guessed by the user. If the guessed number is greater than the result, it will decrease, if it is less, it will increase.
We have 5 chances to guess the number correctly. 1 right is reduced for every wrong answer.
When 5 rights are finished, the sad symbol and “lost” text are printed.
When it is known correctly, you go to the next page and the text You Win and a smiley face appear.