Skip to content

Commit d04ca9a

Browse files
authored
Update python Space Invader game.py
Updated comparison of literals using "==" instead of "is"
1 parent 0a1c148 commit d04ca9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: python Space Invader game.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def iscollision(enemyx, enemyy, bulletx, bullety):
167167
bullety = 480
168168
bullet_state = "ready"
169169

170-
if bullet_state is "fire":
170+
if bullet_state == "fire":
171171
fire_bullet(bulletx, bullety)
172172
bullety -= bullety_change
173173

0 commit comments

Comments
 (0)