generated from mwc/project_game
I will finish the rest of the project at home
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from fruit import Fruit, SHAPE_DEFINITIONS
|
||||
from random import choice
|
||||
from random import choice, randint
|
||||
from retro.errors import AgentNotFoundByName
|
||||
|
||||
class FruitManager:
|
||||
@@ -13,5 +13,6 @@ class FruitManager:
|
||||
self.create_piece(game)
|
||||
|
||||
def create_piece(self, game):
|
||||
fruit = Fruit((14, 1), game, choice(SHAPE_DEFINITIONS))
|
||||
x = randint(0, 26)
|
||||
fruit = Fruit((x, 1), game, choice(SHAPE_DEFINITIONS))
|
||||
game.add_agent(fruit)
|
||||
Reference in New Issue
Block a user