src/main/java/org/teachingextensions/logo/Tortoise.java
public boolean eatPizza(Pizza pizza)
  {
    if (!pizza.takeSlice()) { return false; }
    if (this.topping == null) { return true; }
    if (this.topping != Topping.Cheese) { return pizza.hasTopping(topping); }
    return pizza.wasCooked() && pizza.hasTopping(topping);
  }
public boolean eatPizza(Pizza pizza)
  {
    if (!pizza.takeSlice()) { return false; }
    if (this.topping == null) { return true; }
    if (this.topping != Topping.Cheese) { return pizza.hasTopping(topping); }
    return pizza.wasCooked() && pizza.hasTopping(topping);
  }
Checks if a tortoise can eat a slice of a pizza
<div><b>Example:</b> {@code  tortoise.eatPizza(pizza)}</div>

@param pizza
the pizza
@return whether or not there is pizza left to eat that a tortoise likes