aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-27 02:02:16 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-10-27 02:02:16 +0200
commit40d453145c5b303de7bb1ed42555dbf8bbe239c2 (patch)
tree5ffb37e906bdf270175db0efd813ef5c706f4b3a
parentb554a68e1c1f34b3d993eb10ccbd3fe307e9ebbe (diff)
Rename reroll_dice() to reroll()
-rwxr-xr-xyahoozy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yahoozy.py b/yahoozy.py
index 7a5ee78..9eba0bf 100755
--- a/yahoozy.py
+++ b/yahoozy.py
@@ -291,7 +291,7 @@ class DiceState:
# the user has selected the die for rerolling.
self.rollmsk = 0
- def reroll_dice(self) -> None:
+ def reroll(self) -> None:
"""Reroll the dice according to the reroll mask."""
while self.rollmsk != 0:
n = self.rollmsk.bit_length() - 1
@@ -705,7 +705,7 @@ def game_loop(rs: RenderState, body_win) -> None:
elif ds.rollmsk == 0:
rs.hp.diag = "No dice selected to reroll"
else:
- ds.reroll_dice()
+ ds.reroll()
elif k == "\n" and rs.sel >= 0:
ds.rollmsk ^= 1 << rs.sel
elif k == curses.KEY_UP: