Skip to content

Commit d98989c

Browse files
committed
Pylint conformance
1 parent 25ce2da commit d98989c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CLUE_Dice_Roller/clue_dice_roller.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
"""
99

1010
import time
11-
import board
1211
from random import randint
12+
import board
1313
from adafruit_clue import clue
1414
from adafruit_debouncer import Debouncer
1515
import displayio
1616
from adafruit_bitmap_font import bitmap_font
17-
import terminalio
1817
from adafruit_display_text import label
1918

2019

@@ -26,7 +25,8 @@
2625
SELECTING = 0
2726
ROLL_RESULT = 1
2827

29-
number_of_dice = 0 # 0-relative, gets adjusted to 1-relative before display/use
28+
# 0-relative, gets adjusted to 1-relative before display/use
29+
number_of_dice = 0
3030
side_selection = 0
3131

3232
button_a = Debouncer(lambda: clue.button_a)
@@ -57,8 +57,8 @@
5757

5858
def roll(count, sides):
5959
for i in range(15):
60-
roll = sum([randint(1, sides) for d in range(count + 1)])
61-
roll_label.text = str(roll)
60+
roll_value = sum([randint(1, sides) for d in range(count + 1)])
61+
roll_label.text = str(roll_value)
6262
roll_label.x = 120 - (roll_label.bounding_box[2] // 2)
6363
duration = (i * 0.05) / 2
6464
clue.play_tone(2000, duration)

0 commit comments

Comments
 (0)