generated from mwc/project_game
@chris My fruit offset does not work
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user