Personal tools
You are here: Home Classes Fall 2004 - Spring 2005 CS 150 2.28.05 Puzzle.java
Document Actions

Puzzle.java

by admin last modified 2005-05-11 13:36

// The goal here is to add some methods that decorate the // grid when it is drawn, such as paintRow(), paintColumn(), // paintX(), paintTablecloth(), paintCheckerboard().

// The methods of class Grid are // public void color(int row, int col, String newColor); // public int firstRow(), public int firstColumn(); // public int lastRow(), public int lastColumn().

class Puzzle { private Grid g;

public Puzzle() { g = new Grid(11, 11); }

public static void main( String args[] ) { Puzzle p = new Puzzle();

} }

 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: