Automatické vyhodnocení a nová dynamika kola #31

Merged
david-spacil merged 9 commits from feature/automaticke-vyhodnoceni into version/v0.3.0 2026-07-12 20:53:29 +02:00
Showing only changes of commit 21efddc1a0 - Show all commits
+1 -2
View File
@@ -20,7 +20,7 @@ csv_text = files(__package__).joinpath("hodnoty.csv").read_text(encoding="utf-8"
csv_reader = csv.reader(csv_text.splitlines())
for row in csv_reader:
key = str(row[0])
key = row[0]
value = int(row[1])
hodnoty[key] = value
@@ -28,7 +28,6 @@ for row in csv_reader:
hodnoty = dict(sorted(hodnoty.items(), key=lambda x: x[1], reverse=True))
def throw(count: int) -> str:
count = int(count)
new_throw: list[str] = []
for _dice in range(count):
new_throw.append(str(randint(1, 6)))