cozmo_taste_game.plate package

cozmo_taste_game.plate.colorful_plate module

class cozmo_taste_game.plate.colorful_plate.ColorfulPlate[source]

Bases: cozmo_taste_game.plate.plate.Plate

Colorful plate class: the goal is to fill the plate with colorful foods.

add_food(food: cozmo_taste_game.food.food_prop.FoodProp) → None[source]

Adds a food to the plate

Parameters:food – A food prop object to add to the plate
Returns:None
can_place_food(food_to_be_placed: cozmo_taste_game.food.food_prop.FoodProp) → bool[source]

Determines whether or not food can be placed on the plate.

Parameters:food_to_be_placed – The food prop object to be placed on the plate
Returns:bool
colors

The colors currently on the plate. :return: The colors currently on the plate.

is_full

The plate is full if there is a certain number of colors. :return: bool

cozmo_taste_game.plate.plate module

class cozmo_taste_game.plate.plate.Plate[source]

Bases: abc.ABC

Abstract plate interface.

add_food(food: cozmo_taste_game.food.food_prop.FoodProp) → None[source]
can_place_food(food: cozmo_taste_game.food.food_prop.FoodProp) → bool[source]
is_full