Files
project_game/game.py
2025-12-17 09:46:53 -05:00

16 lines
285 B
Python

# game.py, version 2
from retro.game import Game
from ball import Ball
from paddle import Paddle
width = 40
height = 40
ball = Ball((26, 20))
paddle = Paddle((18, 38))
agents = [ball, paddle]
state = {}
game = Game(agents, state, board_size=(width, height), debug=True)
game.play()