Skip to content

Instantly share code, notes, and snippets.

@NatashaTheRobot
NatashaTheRobot / MidpointFindingKarel Solution
Created October 28, 2011 04:18
This is the solution the MidpointFindingKarel problem in the online Stanford CS 106A class
/*
* File: MidpointFindingKarel.java
* -------------------------------
* When you finish writing it, the MidpointFindingKarel class should
* leave a beeper on the corner closest to the center of 1st Street
* (or either of the two central corners if 1st Street has an even
* number of corners). Karel can put down additional beepers as it
* looks for the midpoint, but must pick them up again before it
* stops. The world may be of any size, but you are allowed to
* assume that it is at least as tall as it is wide.
@NatashaTheRobot
NatashaTheRobot / CheckerboardKarel Solution
Created October 28, 2011 03:57
This is the solution to the CheckerboardKarel problem in the online Stanford CS 106A class
/*
* File: CheckerboardKarel.java
* ----------------------------
* When you finish writing it, the CheckerboardKarel class should draw
* a checkerboard using beepers, as described in Assignment 1. You
* should make sure that your program works for all of the sample
* worlds supplied in the starter folder.
*/
import stanford.karel.*;