These are some projects I've worked on/am working on.
This should go without saying, but there is no warranty of any kind on this code. It might not work on your computer when you run it.
If you have any questions, (or want me to work on something), then please e-mail me. I'll probably respond.
→ The best way to run these would be to import the .zip file as a project in Eclipse. It should work fine; just run the class with the main method in it.
I'm probably more proud of this project than any of the others on this page.
This was my group project for CS 125 in Spring 2010. I did this project with three other people, but I ended up coding about 98% of it while my other group members helped with the planning and track design.
It's supposed to be a racing game, where you control a racer around a track. I think it was considered the hardest project out of the other four choices; I was notified by my group members that I also went overboard with this one compared to other groups in the class.
Initially I had used my professor's class for 2D graphics, but I found it limiting, so I ended up learning how to use Swing. I coded most of the MRGExperiment class in one night, so looking at that is a good indicator of what I can code when I'm in a hurry.
I'm especially proud of it because it was the first time I used Threads in Java. I have several threads running: one to draw the background and UI, another to calculate the position of the racer and its speed, and another to detect the color changes on the track. I also used Swing components like JTextFields and a JColorChooser, and I used inner classes to keep the code organized.
It's currently unfinished, but it's closer to completion that most of the other projects on this page.
DownloadThis was what I presented for my honors project for CS 196-25 after I got stuck on my other ideas.
It doesn't work too well right now; it checks some simple things and fills in squares based on that. It also doesn't display the "cages," requiring the user to know their size and position already.
Still, (I think) the structure is okay and I'll probably work on it some more, eventually.
Later, I hope to add a way for a user to input a blank puzzle or a partially-solved one. The most difficult part would be finding a way for the user to input the "cages".
DownloadThere's no picture here because I didn't get very far on this project, and it wouldn't be very interesting to look at.
What I had wanted to do was to create a GUI application in Java so that it would be easy for a user to generate JSON code for use in a graph made using the openflashchart framework.
It turned out that it was a lot harder than I thought. What I have done at the moment is a way to create JSON structures in Java and have it print out valid JSON code. I was going to write a parser after that, but it was a bit over my head.
I also realized it would've been easier to extend HashMap for a JSON object and ArrayList for a JSON array rather than wrapping them in a class. I've started on a version two that is structured better, but I've posted this first version here because there's more interesting stuff to look at.
I'll probably come back to it sooner or later...
DownloadThis was my final project for AP Computer Science in high school. The player was given a character and had to fight randomized enemies in an arena until they died. It had a shop and an inventory system, so the player could buy recovery items, upgrade weapons and armor, or sell back stuff. The player could also level up, and the enemies' levels and equipment would scale up with him to a limited degree.
You can poke around in the code and look at how I managed the different states using while loops and labeled break statements. I didn't know very much about managing game states at the time, so I thought it was pretty impressive; at least it was enough to get an A+ on the project.
There's no download link because I can't find it; I'll post it as soon as I do.