ColinJR95 / angryBird-cpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angryBirdMoves-cpp1

this is simply hcpp class. First course of cpp

moveForward(); moveForward(); turnLeft(); moveForward(); moveForward(); turnLeft(); while (notFinished()) { moveForward() }

while (notFinished()) { moveForward(); turnLeft(); moveForward(); turnRight(); }

turnRight(); moveForward(); turnLeft(); while (notFinished()) { moveForward(); turnRight(); moveForward(); turnLeft(); }

moveForward(); moveForward(); while (notFinished()) { if (isPathLeft()) { turnLeft(); } while (notFinished()) { executionInfo.checkTimeout(); if (executionInfo.isTerminated()){return;} moveForward(); } 15. moveForward(); moveForward(); moveForward(); turnRight(); moveForward(); moveForward(); moveForward(); moveForward(); if (isPathRight()) { turnRight(); } while (notFinished()) { moveForward(); }

while (notFinished()) { moveForward(); if (isPathLeft()) { turnLeft(); moveForward(); } }

while (notFinished()) { moveForward(); if (isPathRight()) { turnRight(); } }

About