Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e9e8fc6

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in bfcf806 according to the output from Autopep8. Details: None
1 parent 154e536 commit e9e8fc6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎Zhed/Zhed.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
pygame.display.set_caption("Zhed")
2020

2121
# Main loop
22+
23+
2224
def main():
2325
running = True
2426

@@ -36,12 +38,15 @@ def main():
3638
sys.exit()
3739

3840
# Draw the grid
41+
42+
3943
def draw_grid():
4044
for x in range(0, WIDTH, CELL_SIZE):
4145
pygame.draw.line(screen, BLACK, (x, 0), (x, HEIGHT))
4246
for y in range(0, HEIGHT, CELL_SIZE):
4347
pygame.draw.line(screen, BLACK, (0, y), (WIDTH, y))
4448

49+
4550
# Start the game
4651
if __name__ == "__main__":
4752
main()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /