CS 324e Coding Samples
Various Java programs to illustrate various concepts:
ZipfChecker and WordInventory: Initial class to check Zipf's law on a text. (In this case, the complete works of Winston Churchill from Project Gutenberg.)
Final version of ZipfChecker and WordInventory.
Start of HelloGUI classes. Simple GUI creation in Java.
Finished HelloGUI.
EventExampleMain (Code that shows how to create and add buttons that respond to events)
AnimationMain and AnimationPanel (Classes the set up an animation framework and show a very simple animation.)
Completed version of AnimationPanel
Code for initial version of WormChaser (WormChaseMain.java, WormChasePanel.java, and Worm.java)
Code for the final version of WormChase (WormChaseMain.java, WormChasePanel.java, Worm.java, Sessile.java, Apples.java, Obstacles.java)
Code for a some 2D graphics examples (GradientPaint, QuadCurve) palce in the old HelloGUI.java program.
SimpleImageExamples. Code to load and display images. (Code must be modified to use images on your machine.)
Various ImageFilters demoed. Split into 3 classes: ImagesMain.java, ImagesPanel.java, and FilterOps.java
HelloUniverse. A "simple" class with a spinning colored cube. Standard program to test if Java3D is installed correctly.
CheckerboardWorld.java (Class to show set up of basic Java3D scene. From chapter 15 of the book.)
Completed CheckerboardWorld.java and CheckerFloor.java
Checkers3D version to show effect of different divisions on spheres and wireframes
MorphAndLathe: program that programmatically creates 3D shapes
3DLoader zip file with classes and models to load 3D models.
Maze3D program. As demonstrated in class. Here are the support files. The program assumes these are in the project folder. (Maze file, background image, die image, box texture, cylinder texture)
FractalLand. Example from KGPJ that generates a world with random terrain. A diamond - square algorithm is used to generate random, but realistic terrian.