Skip to content

Commit 4e47bb3

Browse files
committed
Update classes.py
1 parent f6d31b9 commit 4e47bb3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ellens-alien-game/classes.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class Alien:
55
"""
6-
Create an Alien object with location x_coordinate and y_coordinate.
6+
Alien located at given coordinates.
77
88
Attributes
99
----------
@@ -17,7 +17,8 @@ class Alien:
1717
-------
1818
hit(): Decrement Alien health by one point.
1919
is_alive(): Return a boolean for if Alien is alive (if health is > 0).
20-
teleport(new_x_coordinate, new_y_coordinate): Move Alien object to new coordinates.
20+
teleport(new_x_coordinate, new_y_coordinate): Move Alien object
21+
to new coordinates.
2122
collision_detection(other): Implementation TBD.
2223
"""
2324

@@ -47,7 +48,7 @@ def new_aliens_collection(
4748
alien_start_positions: list[tuple[int, int]],
4849
) -> list:
4950
"""
50-
Creates a list of Alien() objects, given a list of positions (as tuples).
51+
Create a list of Alien objects from starting positions.
5152
5253
:param alien_start_positions: given a list of positions
5354
:return: a list of Alien() objects

0 commit comments

Comments
 (0)