Created
October 26, 2017 14:06
-
-
Save stfalconaleks/ffd9c1282e705dc8b23a5216757733ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$conditions = new Condition(); | |
$untilCondition = (new Condition\Until())->findVegetables('carrot', 'cabbage'); | |
$turnBackCondition = (new Condition\TurnBack())->ifMeet('wolf', 'hunter'); | |
$conditions->add($untilCondition)->add($turnBackCondition); | |
$rabbit->run(Direction::FORWARD, $conditions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment