GO Solution For UVa 10530 - Guessing Game. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Stan and Ollie are playing a guessing game. Stan thinks of a number between 1 and 10 and Ollie guesses what the number might be. After each guess, Stan indicates whether Ollie’s guess is too high, too low, or right on.

After playing several rounds, Ollie has become suspicious that Stan cheats; that

...

You can find the full details of the problem Guessing Game at UVa Online Judge

Sample Input

10
too high
3
too low
4
too high
2
right on
5
too low
7
too high
6
right on
0

Sample Output

Stan is dishonest
Stan may be honest

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985