Skip to content

Commit

Permalink
Use more idiomatic docstring indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nirs committed Aug 27, 2023
1 parent 2ed7094 commit 8ca74dc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions rose/server/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ def __init__(self, name, car, lane):
Args:
name (str): The unique name of the driver for display.
car (int): A number from 0 to 3, representing the car type.
lane (int): The initial lane number, between 0 and the
maximum lane.
lane (int): The initial lane number, between 0 and the maximum
lane.
Attributes:
x (int, optional): The X-coordinate of the driver.
Starts in the middle of the lane.
y (int, optional): The Y-coordinate of the driver.
Starts at 2/3 of the screen height.
action (str, optional): The current driver action. Defaults
to 'none'.
response_time (float, optional): The duration the driver takes
to react. Starts as None.
x (int, optional): The X-coordinate of the driver. Starts in the
middle of the lane.
y (int, optional): The Y-coordinate of the driver. Starts at 2/3 of
the screen height.
action (str, optional): The current driver action. Defaults to
'none'.
response_time (float, optional): The duration the driver takes to
react. Starts as None.
score (int, optional): The driver's current score. Begins at 0.
"""
self.name = name
Expand Down

0 comments on commit 8ca74dc

Please sign in to comment.