Generation

generate functionSat, 19 Nov 2022

ship length is 2 create a function to return a string of the coordinates x and y of Place(Position start, Direction direction).

public string GetCoordinates(int x, int y) { return $"({x}, {y})"; }

Want to kickstart your project?Use the new AI Studio to create your code