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 { } }
public MazeSolver(IAmazeingClient client, MazeInfo maze) { _client = client; this._maze = maze; }
public CountingClient(IAmazeingClient amazeingClientImplementation) { _amazeingClientImplementation = amazeingClientImplementation; }