добавил перезапись сложности в config.ini

добавил зависимости вероятностей от сложности
немного английской грамматики добавил
This commit is contained in:
2022-12-24 22:21:08 +07:00
parent fbb32c50d9
commit f09ad6613a
6 changed files with 35 additions and 17 deletions
+5
View File
@@ -1,5 +1,6 @@
import pygame
from modules.Board import Board
from modules.Mathematics import recalculation_events, get_random_event
class Game:
@@ -24,6 +25,10 @@ class Game:
self.running = False
if event.type == pygame.MOUSEBUTTONDOWN:
self.board.get_click(event.pos)
if event.type == pygame.MOUSEWHEEL:
event = get_random_event()
recalculation_events(event["well"])
print(event)
def render(self):
self.screen.fill((0, 0, 0))