Author Archives: thetechn
A friendly place for programming greenhorns
Timothy Bahls - UW Madison CS
This is my old grad school site. My grad school days are well behind me know, but the Computer Science department of the UW-Madison has left it up, for which I am very grateful.
This is a list of assorted dev projects, nearly all recreational Java stuff, mostly from an era when I didn't have kids running around. Note that none of the Java applets are signed or anything, so your browser will whine about security. You can tell my applications are safe by the extraordinary ugliness of this site--if I was hacking your computer for profit I'd spend enough time figuring out color theory to not have this lame blue-gray.
Amazing Games
CleanBot7: An excellent top down robot adventure game.
Squash Pit: Blob fighting. Play this.
Bellipax: An excellent Java Realtime Strategy Game
Finished Games
Yikes in Yellowstone: A platform jumping game.
RPS RTS: Rock Paper Scissors Real Time Strategy.
Nick's Catcher Game: Green square good; Red square bad.
Tricky card Game: A card game based on an Intro to Comp Sci program.
Fire Balls: Keep them hot potatoes in the air.
Chase: No shame in running.
Manacala: AI so mean it can trash you three times in one go.
Space Death 2: A space invaders game I made after my Intro to computer science course, which I continued to improve over the summer.
Frogger: Based on that old school game--not much fun.
Game Books: Choose Your Own Adventure books by my students.
Partial Games
Zipper:A spinning rainbow-beam-shooting ball.
Brick Smack: Bouncing red block destroys blue blocks.
Space Game: Design and purchase your own ships and command them in battle against your enemy.
Pushing puzzle: Can you solve these three ill-documented puzzles?
Tunnel: Dodge shapes in two directions.
SpaceBalls: Want to learn Java game programming? Try here--a well documented java program.
Toys
Misty forest: Stochastic tree fractals in the mist....
Rainbow Paint 2: A drawing program made for my sister. Over twice as cool as Rainbow Paint.
Logic Gates: The building blocks of computers.
The Mandelbrot set: The fractal so beautiful and complex it makes you cry. Now with excellent colors.
Sort Animations: can you ever get enough?
Fireworks: Cool Java explosions.
Cellular Automata: A fun swirly blue color thing from a semi-obscure branch of mathematical computer science.
Tie Dye fun: Rainbows everywhere!.
Poetry Generator: Who says computers can't write poems?
Rainbow Paint: A drawing program made for my fiancee. Not half as cool as Rainbow Paint 2.
Not Games, but still cool
3D Animations: Some physics and computer science animations
Physics Applets: Demonstrations and visualizations.
Vision final project: Some informal research.
Mondrian Motion: Some formal research.
page
This site has plenty of unorganized files. Browse if you wish--you can probably get the source code of any games you want. You can access them here. p>
UW Madison >> CS department >> Tim's website
http://pages.cs.wisc.edu/~bahls/all/
Animation tester
Pancake sort Rosetta code
Conway's game of life lacklan
tic tac toe lacklan
ray tracing
Bacterial Tracheitis
Girls and robotics
Big O Notation
Einstein online
interactive python on the web
asyncio
good students make bad teachers? - jstor
Brandom Horn
175 MC questions to prepare for the APCS Exam
Annotated Solutions to Past Free-Response Questions APCS
Euler Project
Visual Calculus
Visual Calculus - Newton's Method
Binary Trees in Java - New Think Tank
Java Notes - Binary Trees
Objects First with Java Video Notes
Object First with Java BlueJ
Program Style Guide
The life and afterlife of Aaron Swartz
Doodling in Math
Library of Congress
Business Reference Services Online - BERA
Business REference Services - Statistics
Government Data
DreamBoard
Laparoscopic md
Gallbladder Test
TV Guide
SAGE GI surgeons
Green Jobs - energy efficient businesses
Battleship in GitHub
Snap Fitness
Princeton Medical Center
Earth from space - NOVA
Snow Monkeys
Stress, Portrait of a Killer
ABS Toxicity
arduino 101 potiometers and servos
motion sensor PIR Garage Lab
arduino emf detector
w3schools
non-breaking space
<!--This is a comment. Comments are not displayed in the browser-->
<p>This is a paragraph.</p>
Unordered:
<!DOCTYPE html>
<html>
<body>
<h2>Unordered List with Circle Bullets</h2>
<ul style="list-style-type:circle">
<li>Apples</li>
<li>Bananas</li>
<li>Lemons</li>
<li>Oranges</li>
</ul>
</body>
</html>
<ul style="list-style-type:disc">
<li>Coffee</li>
<li>Tea
<li>Milk</li>
</ul>
<ul style="list-style-type:square">
<li>Coffee</li>
<li>Tea
<li>Milk</li>
</ul>
<ul style="list-style-type:none">
<li>Coffee</li>
<li>Tea
<li>Milk</li>
</ul>
Table without boxes
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_table
<!DOCTYPE html>
<html>
<body>
<table style="width:100%">
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>80</td>
</tr>
</table>
</body>
</html>
table single line borders
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_table_collapse
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
</style>
</head>
<body>
<table style="width:100%">
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>80</td>
</tr>
</table>
</body>
</html>
table with boxes
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_table_border_attribute
<!DOCTYPE html>
<html>
<body>
<table border="1" style="width:100%">
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>80</td>
</tr>
</table>
</body>
</html>
3x3 table with red and yellow background colors
http://www.w3schools.com/tags/tag_col.asp
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<table>
<colgroup>
<col span="2" style="background-color:red">
<col style="background-color:yellow">
</colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
<tr>
<td>5869207</td>
<td>My first CSS</td>
<td>$49</td>
</tr>
</table>
</body>
</html>
http://www.w3schools.com/tags/tag_comment.asp
You can also use the comment tag to "hide" scripts from browsers without support for scripts (so they don't show them as plain text):
<script type="text/javascript">
<!--
function displayMsg()
{
alert("Hello World!")
}
//-->
</script>
Note: The two forward slashes at the end of comment line (//) is the JavaScript comment symbol. This prevents JavaScript from executing the --> tag.