Fixing game to working state

This commit is contained in:
Chris Proctor
2026-03-19 12:15:22 -04:00
parent 98f6f2716c
commit 9276ed9aa0
10 changed files with 131 additions and 140 deletions

17
fruit_catcher/game.py Normal file
View File

@@ -0,0 +1,17 @@
from random import randint
from retro.game import Game
from .catcher import Catcher
from .manager import FruitManager
import json
WIDTH = 27
HEIGHT = 30
def play():
agents = [
Catcher((11, 29)),
FruitManager(),
]
state = {'Score': 0}
game = Game(agents, state, board_size=(WIDTH, HEIGHT), framerate=24, color="white_on_indigo", dump_state="result.json")
game.play()