예제 #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;
 }