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})"; }

Questions about programming?Chat with your personal AI assistant