Python

balls.py

Solver of the famous "twelve balls" problem, in which one must find a defect out of twelve seemingly identical metal balls. One is either heavier or lighter, and the only tools are a balance scale with three weighings. See source

buddybot.py

An AOL instant messaging bot, acting as a message echoer of sorts. It holds the last 10 messages sent to it in messages[], and the name of the person who sent the message. See source

chemParse.py

Chemical formula parser, finds mass of formulas and amount of moles/atoms in the formula. See source

chemParseCMD.py

Command line version of chemParse.py. See source

darwin.py

Creates a pseudo-darwinistic society where two families compete to be more wealthy and able than the other. See source

displacement.py

A program that finds the volume and density of an object, based on the mass in air, the mass in a liquid, and the density of that liquid. See source

dogsay.py

Copycat (copydog, actually) version of the perl program cowsay, using a dog instead of a cow. See source Get archive

flash-boom.py

Distance from lightning calculator. See source

massMoles.py

Calculates the amount of years it would take a mole of moles to reproduce enough times (population doubling every month) so the mass of the moles equals the mass of the known universe. See source

mouse0.py

Souris, le reproducteur ennuyant. Reproduces on your hard drive (leaving a big mess, of course) and eats at your RAM. See source

nameGen.py

Psudo-randomly gererates names from US Census lists, if no local namelist is available, it will create one from the lists at www.census.gov. See source

object_store.py

Object-oriented programming excercise, using stores and employees to test inheritance. See source

path.py

A simple pathfinding algorithm. See source

percentMass.py

Using chemParseCMD.py, finds percent mass of things. See source

pvnrtToTex.py

Converts your P, V, m, and T values to a friendly LaTeX representation of the ideal gas law equation. See source

scripts.py

The replacement for the index page of tinpenguin.com/python/. Takes each python file in the directory, reads its data, and displays it in an html template. See source

tac.py

Recreation of the Unix "tac" utility, which reads files backwards. See source

texty.py

Skeleton of a nifty text-adventure game. See source

tiger.py

Tigre, le mangeur de petites animaux. Searches through your directories for yummy files, and eats them. Leaves behind .poo files. See source

verbs.py

A French verb conjugator. See source Get archive

vocab.py

Something to help you with studying vocabulary. Uses flash-card-like techniques to help you learn by asking for the words, and remembers which words you got wrong to help later on. See source

words.py

A word counter. Gets words (one word per line) and tells how many of each were seen. See source

xyToSpeedRotation.py

Takes x and y of "joystick", and generates motor speeds See source