# Guess the random number ## What we want to build We want to create a small game, the game consists on a player trying to identify a random number, the player will have three intents to guess the number, if it does it the player wins, if doesn't the player loses. In the case that the player fails guessing the number, the game must notify the user if the number it's higher or lower. ## Business rules - The user request to start a game - When the random number it's generated and it must not change untill the user guesses the number or the game ends. - If the user guesses the number the player wins. - If the user does not guess the number the system would have to notify the user if the number it's higher or lower. - If the user does not guess the number on three intents it will lose. ## Use cases ### The player wins on the first move ``` As player I choose the correct number on the first intent ``` | Initial state | Player wins on the first move | | -------- | -------- | | ![Initial state](https://i.imgur.com/YZ0V3Yh.png) | ![Player won on the first Intent](https://i.imgur.com/3IEW9hL.png) | --- ### The player wins not on the first intent ``` As user I play several intents untill I finally win ``` | Initial state | Player first move | Player second move | Player third move | | -------- | -------- | -------- | -------- | | ![Initial state](https://i.imgur.com/YZ0V3Yh.png) | ![Player first move and he/she is higher](https://i.imgur.com/fCMknF7.png) | ![Player second move and he/she is lower that the random number](https://i.imgur.com/zkATRSF.png) | ![Player won on the las intent](https://i.imgur.com/1qlIzxm.png) | --- ### The player loses the game ``` As user I play all the intents but I can not found the number ``` | Initial state | Player first move | Player second move | Player third move | | -------- | -------- | -------- | -------- | | ![Initial state](https://i.imgur.com/YZ0V3Yh.png) | ![Player first move and he/she is higher](https://i.imgur.com/fCMknF7.png) | ![Player second move and he/she is lower that the random number](https://i.imgur.com/zkATRSF.png) | ![Player loses the game after all the intents](https://i.imgur.com/PQaxPM4.png) | Image for the kata: https://unsplash.com/photos/jZTORZJLknk