Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Outcome CheckGuess()
- {
- if (CanMakeGuess)
- {
- if (_guessedNumbers.ContainsKey(Guess))
- {
- return Outcome.OldGuess;
- }
- if (Count == 7)
- {
- return Outcome.NoMoreGuesses;
- }
- if (_guess == Number)
- {
- return Outcome.Right;
- }
- else if (_guess > Number)
- {
- return Outcome.High;
- }
- else if (_guess < Number)
- {
- return Outcome.Low;
- }
- }
- return Outcome.NoMoreGuesses;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement