nerd_skywalker at March 8th, 2010 19:02 — #1
So in my java class (the weird class before AP com sci) we are currently doing Karel the Robot. It is such a poor representation of the language to the people who have never seen java before to the point that I want to cry (Coordinates in KtR go (y,x) instead of (x,y), etc).
Back to the point, I am extremely bored in this class and I was wondering if anyone had ideas of projects I could work on in that class while I'm doing nothing.
The computers have Visual Studio 2005, Eclipse, and a couple other java compilers, I am pretty sure I can get Dev-C++ with Allegro on the computer so that is another option.
I am just looking for ideas of things to pass the time because I have an extreme lack of creativity.
Thanks for any help
reedbeta at March 8th, 2010 19:29 — #2
Make an Asteroids clone. Or a Tetris clone. Or a Space Invaders clone...you get the idea.
If you're looking for something with less graphics emphasis, try building an AI that plays Tic-Tac-Toe against you. If you finish that try building one that plays Mancala.
nick at March 9th, 2010 04:15 — #3
Ah Java, the language that pretends to be accessible to the braindead.
"Yes this reads out of bounds half of the time but I'm catching the exception so all is good." - Java professor :blink:
Anyway, one suggestion to pass your time would be to write a raytracer. In a few years from now GPUs will be as programmable as CPUs, and so any experience programming something like that will be highly valuable. Plus it's fun to control every pixel, and challenging to make it fast...
thenut at March 9th, 2010 06:19 — #4
I'll second what Nick said. A ray tracer would indeed be fun and you can learn a couple things from it as well. You'll get a better understanding of lighting, collision / intersection testing, projections, and the per-pixel development will improve your shader skills. It's not all that hard either, unless speed is your aim in which case you better learn to speak machine
fireside at March 9th, 2010 06:59 — #5
I think java is a fun language, still probably my favorite. When I was in a class, I did extra things with the projects and homework. I would turn in projects that went beyond what was required, but still did what was required. Sometimes I included graphics for text projects. One time I made a parser to read a file that was being read manually. Sometime I would make text graphics like for a hangman game, stuff like that. It's fun making text graphics. Kept me entertained and still in with what was going on. You can almost always elaborate on the homework and projects. Another thing you can do is help people that are having a hard time, if it's all right with your teacher. Not do the work for them, but help them figure things out and offer explanations and examples. Probably best done during homework sessions rather than in class. Also, the teacher may have suggestions if you ask. Tell him/her you have experience and would like extra credit projects. Don't make it sound like you are a know it all. It doesn't matter about the x,y coordinates. You'll find in 3d that different engines use them differently. Sometimes z is up, sometimes y is up. There's no right/wrong.