Wurtz-Graves

=Chapter3ProjectCode's Code= =Created by: Wurtz - Graves =

Events

 * **When the world starts** ||
 * **Do:** || || **horse9.gallop** timesToGallop = **5** speedofgallop = **5** || ||


 * ****Let** **move** **horse** ** ||


 * **When the world starts** ||
 * **Do:** || || **world.my first method** || ||


 * **When** any key **is typed** ||
 * **Do:** || || **horse.horseGallop** timesToGallo = **1** speedOfGallop = **5** || ||


 * **While the world is running** ||
 * **Begin:** || **** ||
 * **During:** || || **world.collision detection** || ||
 * **End:** || **** ||

Methods
**timesToGallop** **=** **10** ||
 * **world.my first method**
 * || **horse9.name** **set** **value** **to** **jerry**  ||
 * ^  ||  **horse** **say** ( **His name is** **joined with** **horse9.name** ) ||
 * ^  ||  **horse** **say** ( **My name is** **joined with** **horse.myName** ) ||
 * ^  ||  **cowboy** **say** **Hes Getting Away**  ||
 * ^  || **//** **Sets up the beginning of chase and introduces horses**  ||
 * ^  ||  **cowboy** **say** **Catch him with the arrow keys!**  ||

//No variables// ||
 * **world.theAction**
 * || **horse.horseGallop** timesToGallo = **5** speedOfGallop = **4** ||

//No variables// ||
 * **world.collision detection**
 * |||| **If** ( **horse** **is within** **2** meters **of** **horse9** ) ||
 * ^  ||   ||  **cowboy** **say** **You got him!**  ||
 * ^  |||| **Else** ||
 * ^  ||   || //Do Nothing// ||
 * ^  |||| **If** ( **both** ( **horse** **is within** **5** meters **of** **horse9** ) **and** ( **horse** **is at least** **2** meters **away from** **horse9** ) ) ||
 * ^  ||   ||  **cowboy** **say** **Almost there!** **cowboy** **say** **Almost there!**  ||
 * ^  |||| **Else** ||
 * ^  ||   || //Do Nothing// ||

Methods
//No variables// ||
 * **horse.horseGallop** ( [123] **timesToGallo**, [123] **speedOfGallop**)
 * |||||||||||||| **//** **makes the forse gallop semi-realistically** ||
 * ^  |||||||||||||| **Do together** ||
 * ^  ||   ||||||||||||  **horse** **move** **forward** ( **(** **timesToGallo** ***** **speedOfGallop** **)** ) ( **(** **1.08** ***** **timesToGallo** **)** ) style = **abruptly**  ||
 * ^  ||^   |||||||||||| **Do together** ||
 * ^  ||^   ||   |||||||||| **Loop** **timesToGallo** times **time** ||
 * ^  ||^   ||^   ||   ||||||||  **horse.neck** **turn** **forward** **.01** revolutions style = **abruptly** duration = **0.5** seconds  ||
 * ^  ||^   ||^   ||^   |||||||| **Wait** **0.05** seconds  ||
 * ^  ||^   ||^   ||^   ||||||||  **horse.neck.head** **turn** **forward** **0.01** revolutions style = **abruptly** duration = **0.5** seconds  ||
 * ^  ||^   ||^   |||||||||| **Loop** **timesToGallo** times **time** ||
 * ^  ||^   ||^   ||   ||||||||  **horse.backLeftLeg.knee.lowerLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   |||||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||   ||||||  **horse.backLeftLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse.backLeftLeg.knee.lowerLeg** **turn** **forward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||||||||  **horse.backLeftLeg** **turn** **backward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   |||||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||   ||||||  **horse.backLeftLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse.backLeftLeg.knee.lowerLeg** **turn** **backward** **.3** revolutions style = **abruptly** duration = **0.1** seconds  ||
 * ^  ||^   ||^   |||||||||| **Do in order** ||
 * ^  ||^   ||^   ||   |||||||| **Loop** **1** time **time** ||
 * ^  ||^   ||^   ||^   ||   |||||| **Wait** **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse.backRightLeg.knee.lowerLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse.backRightLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse.backRightLeg.knee.lowerLeg** **turn** **forward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse.backRightLeg** **turn** **backward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse.backRightLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse.backRightLeg.knee.lowerLeg** **turn** **backward** **.3** revolutions style = **abruptly** duration = **0.1** seconds  ||
 * ^  ||^   ||^   ||^   |||||||| **Loop** ( **(** **timesToGallo** **-** **1** **)** ) **time** ||
 * ^  ||^   ||^   ||^   ||   ||||||  **horse.backRightLeg.knee.lowerLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse.backRightLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse.backRightLeg.knee.lowerLeg** **turn** **forward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse.backRightLeg** **turn** **backward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse.backRightLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse.backRightLeg.knee.lowerLeg** **turn** **backward** **.3** revolutions style = **abruptly** duration = **0.1** seconds  ||
 * ^  ||^   |||||||||||| **Do in order** ||
 * ^  ||^   ||   |||||||||| **Wait** **0.5** seconds  ||
 * ^  ||^   ||^   |||||||||| **Do together** ||
 * ^  ||^   ||^   ||   |||||||| **Loop** **timesToGallo** times **time** ||
 * ^  ||^   ||^   ||^   ||   ||||||  **horse.neck** **turn** **backward** **0.01** revolutions style = **abruptly** duration = **0.5** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Wait** **0.05** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse.neck.head** **turn** **backward** **0.01** revolutions style = **abruptly** duration = **0.5** seconds  ||
 * ^  ||^   ||^   ||^   |||||||| **Loop** **timesToGallo** times **time** ||
 * ^  ||^   ||^   ||^   ||   ||||||  **horse.frontRightLeg.lowerLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse.frontRightLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse.frontRightLeg.lowerLeg** **turn** **forward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse.frontRightLeg** **turn** **backward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse.frontRightLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse.frontRightLeg.lowerLeg** **turn** **backward** **.3** revolutions style = **abruptly** duration = **0.1** seconds  ||
 * ^  ||^   ||^   ||^   |||||||| **Do in order** ||
 * ^  ||^   ||^   ||^   ||   |||||| **Loop** **1** time **time** ||
 * ^  ||^   ||^   ||^   ||^   ||   |||| **Wait** **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse.frontLeftLeg.lowerLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   |||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||   ||  **horse.frontLeftLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||^   ||  **horse.frontLeftLeg.lowerLeg** **turn** **forward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse.frontLeftLeg** **turn** **backward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   |||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||   ||  **horse.frontLeftLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||^   ||  **horse.frontLeftLeg.lowerLeg** **turn** **backward** **.3** revolutions style = **abruptly** duration = **0.1** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Loop** ( **(** **timesToGallo** **-** **1** **)** ) **time** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse.frontLeftLeg.lowerLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   |||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||   ||  **horse.frontLeftLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||^   ||  **horse.frontLeftLeg.lowerLeg** **turn** **forward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse.frontLeftLeg** **turn** **backward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   |||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||   ||  **horse.frontLeftLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||^   ||  **horse.frontLeftLeg.lowerLeg** **turn** **backward** **.3** revolutions style = **abruptly** duration = **0.1** seconds  ||

//No variables// ||
 * **horse.sayName** ( [ABC] **name**)
 * || **name** **set** **value** **to** **name**  ||
 * ^  ||  **horse** **say** ( **My name is** **joined with** **name** ) ||

Functions
**horseName** **=** **default string** ||
 * java.lang.String **horse.getName**
 * || **horseName** **set** **value** **to** **horse.myName**  ||
 * ^  |||| **Return** **horseName**  ||

Methods
//No variables// ||
 * **horse9.gallop** ( [123] **timesToGallop**, [123] **speedofgallop**)
 * |||||||||||||| **Do together** ||
 * ^  ||   |||||||||||| **Loop** **infinity** times **times** ||
 * ^  ||^   ||   ||||||||||  **horse9** **move** **forward** ( **(** **timesToGallop** ***** **speedofgallop** **)** ) ( **(** **1.08** ***** **speedofgallop** **)** ) style = **abruptly**  ||
 * ^  ||^   |||||||||||| **Do together** ||
 * ^  ||^   ||   |||||||||| **Loop** **infinity** times **times** ||
 * ^  ||^   ||^   ||   ||||||||  **horse9.neck** **turn** **forward** **.01** revolutions style = **abruptly** duration = **0.5** seconds  ||
 * ^  ||^   ||^   ||^   |||||||| **Wait** **0.05** seconds  ||
 * ^  ||^   ||^   ||^   ||||||||  **horse9.neck.head** **turn** **forward** **0.01** revolutions style = **abruptly** duration = **0.5** seconds  ||
 * ^  ||^   ||^   |||||||||| **Loop** **infinity** times **times** ||
 * ^  ||^   ||^   ||   ||||||||  **horse9.backLeftLeg.knee.lowerLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   |||||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||   ||||||  **horse9.backLeftLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse9.backLeftLeg.knee.lowerLeg** **turn** **forward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||||||||  **horse9.backLeftLeg** **turn** **backward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   |||||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||   ||||||  **horse9.backLeftLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse9.backLeftLeg.knee.lowerLeg** **turn** **backward** **.3** revolutions style = **abruptly** duration = **0.1** seconds  ||
 * ^  ||^   ||^   |||||||||| **Do in order** ||
 * ^  ||^   ||^   ||   |||||||| **Loop** **1** time **time** ||
 * ^  ||^   ||^   ||^   ||   |||||| **Wait** **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse9.backLeftLeg.knee.lowerLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse9.backRightLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse9.backRightLeg.knee.lowerLeg** **turn** **forward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse9.backRightLeg** **turn** **backward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse9.backRightLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse9.backRightLeg.knee.lowerLeg** **turn** **backward** **.3** revolutions style = **abruptly** duration = **0.1** seconds  ||
 * ^  ||^   ||^   ||^   |||||||| **Loop** **infinity** times **times** ||
 * ^  ||^   ||^   ||^   ||   ||||||  **horse9.backRightLeg.knee.lowerLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse9.backRightLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse9.backRightLeg.knee.lowerLeg** **turn** **forward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse9.backRightLeg** **turn** **backward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse9.backRightLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse9.backRightLeg.knee.lowerLeg** **turn** **backward** **.3** revolutions style = **abruptly** duration = **0.1** seconds  ||
 * ^  ||^   |||||||||||| **Do in order** ||
 * ^  ||^   ||   |||||||||| **Wait** **0.5** seconds  ||
 * ^  ||^   ||^   |||||||||| **Do together** ||
 * ^  ||^   ||^   ||   |||||||| **Loop** **infinity** times **times** ||
 * ^  ||^   ||^   ||^   ||   ||||||  **horse9.neck** **turn** **backward** **0.01** revolutions style = **abruptly** duration = **0.5** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Wait** **0.05** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse9.neck.head** **turn** **backward** **0.01** revolutions style = **abruptly** duration = **0.5** seconds  ||
 * ^  ||^   ||^   ||^   |||||||| **Loop** **infinity** times **times** ||
 * ^  ||^   ||^   ||^   ||   ||||||  **horse9.frontRightLeg.lowerLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse9.frontRightLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse9.frontRightLeg.lowerLeg** **turn** **forward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||||||  **horse9.frontRightLeg** **turn** **backward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse9.frontRightLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse9.frontRightLeg.lowerLeg** **turn** **backward** **.3** revolutions style = **abruptly** duration = **0.1** seconds  ||
 * ^  ||^   ||^   ||^   |||||||| **Do in order** ||
 * ^  ||^   ||^   ||^   ||   |||||| **Loop** **1** time **time** ||
 * ^  ||^   ||^   ||^   ||^   ||   |||| **Wait** **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse9.frontLeftLeg.lowerLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   |||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||   ||  **horse9.frontLeftLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||^   ||  **horse9.frontLeftLeg.lowerLeg** **turn** **forward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse9.frontLeftLeg** **turn** **backward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   |||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||   ||  **horse9.frontLeftLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||^   ||  **horse9.frontLeftLeg.lowerLeg** **turn** **backward** **.3** revolutions style = **abruptly** duration = **0.1** seconds  ||
 * ^  ||^   ||^   ||^   ||^   |||||| **Loop** **infinity** times **times** ||
 * ^  ||^   ||^   ||^   ||^   ||   ||||  **horse9.frontLeftLeg.lowerLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   |||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||   ||  **horse9.frontLeftLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||^   ||  **horse9.frontLeftLeg.lowerLeg** **turn** **forward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||||  **horse9.frontLeftLeg** **turn** **backward** **0.2** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   |||| **Do together** ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||   ||  **horse9.frontLeftLeg** **turn** **forward** **0.1** revolutions style = **abruptly** duration = **0.25** seconds  ||
 * ^  ||^   ||^   ||^   ||^   ||^   ||^   ||  **horse9.frontLeftLeg.lowerLeg** **turn** **backward** **.3** revolutions style = **abruptly** duration = **0.1** seconds  ||