Commit Graph

21 Commits

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