コード例 #1
0
 private static async Task DoTheKonami(IAmazeingClient mazeClient)
 {
     try{ await mazeClient.Move(Direction.Up); } catch { }
     try{ await mazeClient.Move(Direction.Up); } catch { }
     try{ await mazeClient.Move(Direction.Down); } catch { }
     try{ await mazeClient.Move(Direction.Down); } catch { }
     try{ await mazeClient.Move(Direction.Left); } catch { }
     try{ await mazeClient.Move(Direction.Right); } catch { }
     try{ await mazeClient.Move(Direction.Left); } catch { }
     try{ await mazeClient.Move(Direction.Right); } catch { }
 }
コード例 #2
0
 public MazeSolver(IAmazeingClient client, MazeInfo maze)
 {
     _client    = client;
     this._maze = maze;
 }
コード例 #3
0
 public CountingClient(IAmazeingClient amazeingClientImplementation)
 {
     _amazeingClientImplementation = amazeingClientImplementation;
 }