@chris My fruit offset does not work

This commit is contained in:
kdang
2026-01-09 09:49:15 -05:00
parent d6adfef5a1
commit 267fffa9b0
9 changed files with 69 additions and 54 deletions

View File

@@ -1,11 +1,18 @@
from random import randint
class CatcherPiece:
character = "-"
color = "white_on_indigo"
def __init__(self, position):
self.position = position
def play_turn(self, game):
fruit = game.get_agent_by_name("fruit")
if new_position == fruit.position:
game.state['Score'] += 1
class Catcher:
width = 7
width = 6
display = False
pieces = []
name = "catcher"