er Science Course CS106A of Prof. Mehran Sahami]] at the [[http://www.stanford.edu|STANFORD University... size, but you are allowed to
* assume that it is at least as tall as it is wide.
*/
import stanford... his world
* then it stacks/stores the beepers at 1,1
*
* Pre-condition: Karel at 1,1 facing EAST
* no Beepers at all
*
* Post-co
er Science Course CS106A of Prof. Mehran Sahami]] at the [[http://www.stanford.edu|STANFORD University... ANY SIZE.
*
* Pre-condition: Karel starts at 1,1 facing EAST
*/
while( leftIsClear() ) {... * PRE-CONDITION: Karel looks either EAST or WEST at the first
* Field of a Row.
*
* P... n 1
* which means, starting with a Beeper at Field1,
* then skipping the next field, a
Testing the Code on my computer with some changes at the parameters (class vars) turned out to show so... NON. The ball seems not to come to rest. In fact, at the end you can easily see that it sometimes "gai
KS to Adrian Tassoni and the Clinical Trials Unit at the University Medical Center Freiburg who suppor... to Adrian Tassoni and the Clinical Trials Unit
* at the University Medical Center Freiburg who suppor
er Science Course CS106A of Prof. Mehran Sahami]] at the [[http://www.stanford.edu|STANFORD University...
public void run() {
// 1st column is allways at starting point
while( frontIsClear() ) {
rep
er Science Course CS106A of Prof. Mehran Sahami]] at the [[http://www.stanford.edu|STANFORD University... int Y) {
/*
* Draws (and also adds) a Brick at X,Y using the given Constants
* to the Canvas.
er Science Course CS106A of Prof. Mehran Sahami]] at the [[http://www.stanford.edu|STANFORD University... * This Method draws a CIRCLE with its Centerpoint at X,Y with the Radius
* given in INCH. Circles a
er Science Course CS106A of Prof. Mehran Sahami]] at the [[http://www.stanford.edu|STANFORD University... Beepers() {
/* This Method picks up ALL Beepers at Karels actual position
*/
while( beepersPres