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
/* | |
* File: Target.java | |
* Name: | |
* Section Leader: | |
* ----------------- | |
* This file is the starter file for the Target problem. | |
*/ | |
import acm.graphics.*; | |
import acm.program.*; |
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
/* | |
* File: Pyramid.java | |
* Name: | |
* Section Leader: | |
* ------------------ | |
* This file is the starter file for the Pyramid problem. | |
* It includes definitions of the constants that match the | |
* sample run in the assignment, but you should make sure | |
* that changing these values causes the generated display | |
* to change accordingly. |
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
import stanford.karel.SuperKarel; | |
public class defendDemocracyKarel extends SuperKarel { | |
/* This program is designed to clean the ballots in Karel's world. If there is no | |
* beeper in the centre, this indicates voter intent | |
* and Karel clears that whole column. | |
*/ | |
public void run() { | |
while (frontIsClear()) { | |
move(); |
NewerOlder