From e94420100158aea66a6b22c89d5f9d6013a8d54a Mon Sep 17 00:00:00 2001 From: Marko Ristin Date: Fri, 23 Dec 2022 14:03:29 +0100 Subject: [PATCH] Make re-appearance interval longer The kids could not keep up with the pace, so they were getting demotivated. We increase the re-appearance interval a bit. --- danceamole/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/danceamole/main.py b/danceamole/main.py index 88a9f72..532bf71 100644 --- a/danceamole/main.py +++ b/danceamole/main.py @@ -153,7 +153,7 @@ def __init__(self, game_start: float, game_end: float) -> None: MoleState( action=MoleAction.LINGERING_BENEATH, start=game_start, - end=game_start + 2 + int(random.random() * 10), + end=game_start + 2 + int(random.random() * 13), ) for _ in range(8) ] @@ -273,7 +273,7 @@ def handle_in_game( ): mole_state.action = MoleAction.LINGERING_BENEATH mole_state.start = now - mole_state.end = now + 2 + random.random() * 10 + mole_state.end = now + 2 + random.random() * 13 else: assert_never(mole_state.action)