// END CUT HERE // BEGIN CUT HERE public static void Main() { try { SimpleGuess ___test = new SimpleGuess(); ___test.run_test(-1); } catch(Exception e) { //Console.WriteLine(e.StackTrace); Console.WriteLine(e.ToString()); } }
// END CUT HERE // BEGIN CUT HERE public static void Main() { try { SimpleGuess ___test = new SimpleGuess(); ___test.run_test(-1); } catch (Exception e) { //Console.WriteLine(e.StackTrace); Console.WriteLine(e.ToString()); } }
public int Put(int id, [FromBody] SimpleGuess guess) { _games[id].Guess(guess.Number); return(_games[id].IsSolved ? 0 : _games[id].IsTooHigh ? 1 : -1); }