-
4207baceb4
Break functions up into smaller functions to improve readability
master
filifa
2024-03-19 20:38:20 -05:00
-
2f39ee536b
Make play_pressed function more readable
filifa
2024-03-19 20:38:20 -05:00
-
0177f0ccbe
Rename variables in method to avoid confusion
filifa
2024-03-19 20:38:20 -05:00
-
4e7d631e42
Remove call to update_mine_counter() from the main loop
filifa
2024-03-19 20:38:20 -05:00
-
067a0d568c
Rename function for clarity
filifa
2024-03-19 20:38:20 -05:00
-
1029c49c74
Remove old comment
filifa
2024-03-19 20:38:20 -05:00
-
a4bad93a23
Change the max_mines formula
filifa
2024-03-19 20:38:20 -05:00
-
c4adddb94b
Change names of variables to make lines shorter
filifa
2024-03-19 20:38:20 -05:00
-
5815e82160
Remove unused variable self.coords
filifa
2024-03-19 20:38:20 -05:00
-
581628b380
Improve the digit padding logic for the mine counter
filifa
2024-03-19 20:38:20 -05:00
-
e97389fdbf
Remove old comment
filifa
2024-03-19 20:38:20 -05:00
-
5845156e15
Reduce CPU usage by waiting for event, and make updating the timer an event
filifa
2024-03-19 20:38:20 -05:00
-
c7c0c1220d
Add code to check user input
filifa
2024-03-19 20:38:20 -05:00
-
9e333956f1
Fix so play_again_box does not open upon presing option_box's x button
filifa
2024-03-19 20:38:20 -05:00
-
8547761458
Add user options to set rows, columns, and mines
filifa
2024-03-19 20:38:20 -05:00
-
af0ec4a135
Add shebang line
filifa
2024-03-19 20:38:20 -05:00
-
f00539f64d
Simplify the mine_counter and timer methods
filifa
2024-03-19 20:38:20 -05:00
-
83411db848
Add pygame.Rect member to Board
filifa
2024-03-19 20:38:20 -05:00
-
697779325f
Remove old fixme
filifa
2024-03-19 20:38:20 -05:00
-
a348da8785
Add pygame.Rect member to Square objects
filifa
2024-03-19 20:38:20 -05:00
-
be52cb854d
Add timer
filifa
2024-03-19 20:38:20 -05:00
-
0f9e3814f6
Add game_started variable to Board class
filifa
2024-03-19 20:38:20 -05:00
-
877ea522a0
Initial commit
filifa
2024-03-19 20:38:20 -05:00