generated from mwc/project_game
wip
This commit is contained in:
34
bunco.py
Normal file
34
bunco.py
Normal 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()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user