Skip to content

Instantly share code, notes, and snippets.

View kenechiokolo's full-sized avatar

KC Okolo kenechiokolo

View GitHub Profile
@kenechiokolo
kenechiokolo / CS106A: Assignment 2.2
Created March 14, 2015 14:36
CS106A: Assignment 2.2
/*
* File: Target.java
* Name:
* Section Leader:
* -----------------
* This file is the starter file for the Target problem.
*/
import acm.graphics.*;
import acm.program.*;
@kenechiokolo
kenechiokolo / Pyramid
Created March 14, 2015 13:18
Programming Methodology CS106A: Assignment 2.1
/*
* 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.
@kenechiokolo
kenechiokolo / gist:140041c53ee771fbd4f5
Created March 10, 2015 13:45
Section Assignment 1: Defend Democracy Karel
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();