Tag: High school

Mole-opoly

I made a mole-themed Monopoly game. Not just the animal kind of mole, either: answering chemistry questions is how you earn the chance to roll the dice. The Java applet keeps track of the board squares, players, money, ownership, and questions as separate objects. There are buttons for rolling, buying property, and choosing an answer. […]

Read post: Mole-opoly

Drawing things with recursion

I made a little Java drawing experiment called Tendron. It starts with a few lines and turns into a branching, rather plant-like scribble. There is not really a game here; I just wanted to see what the pattern would do. A Cluster creates four Tendril objects pointing into different quadrants. Each tendril draws short randomized […]

Read post: Drawing things with recursion

ETPaint

I made a little paint program in Java. Drag the mouse to draw, click a color in the palette, and keep drawing. It is not going to replace Paint, but it is mine. The applet listens for mouse presses, releases, and dragging. The palette is an image with different clickable coordinate regions; choosing one updates […]

Read post: ETPaint

Pong in a web page

I made a Java version of Pong. A paddle, a ball, and somebody trying to keep the ball from getting past them: a pretty good starting point for figuring out an animated game. The applet uses AWT mouse and keyboard events for input, images for the paddles and ball, and an audio clip for the […]

Read post: Pong in a web page

Guess the three-digit number

Here is another little Java applet: guess a three-digit number. The computer picks the number and keeps asking until I get it right, then tells me how many guesses it took. This version uses Swing input and message dialogs, even though it is launched from an applet page. The program generates the number with Java’s […]

Read post: Guess the three-digit number