This commit is contained in:
Hope
2025-08-19 08:29:03 -04:00
parent 3b8676a37a
commit fdf145e2c1
11 changed files with 208 additions and 1 deletions

34
bunco.py Normal file
View File

@@ -0,0 +1,34 @@
from retro.game import Game
from random import randint
import score
import config
import roll
state = {
#state displayed in the bootom section of the game
"1. Current Team": 1,
"2. Current Round": 1,
"3. Blue Team Score": 0,
"4. Red Team Score": 0
}
agents = [
roll.Roller(),
roll.Die((20, 15), "die1"),
roll.Die((30, 15), "die2"),
roll.Die((40, 15), "die3"),
]
game = Game(agents, state, color="black_on_white")
game.play()