Nick’s Code

Search

XNA MVP

Contact

Donate

Categories

Latest News

Twitter


follow nickgravelyn at http://twitter.com



RSS Feed

Who Does Java?

Posted in Java on March 17, 2008 at 11:06pm.
There are no comments.

I was poking around my server briefly and noticed my final project for a CS class I took was still in there. The proect was to create a virtual mouse-in-a-maze where a mouse tried to find a piece of cheese using various algorithms. Most is pretty basic recursion, but where mine shines is the mouse that can smell the cheese. The way the teacher presented the method was to have the mouse check nearby cells for the cheese and just call that scent. “Screw that,” I said and instead implemented a “scent map” where I would recurse out from the cheese (around obstacles even) to generate the strength of the smell of cheese at any point. The mouse then would “smell” the current cell, move in a direction, and then compare the new cell’s smell to the old one and use that to hone in on it. Pretty fun. (And managed to get me 115% on the assignment ).

Anyway the whole thing is written in Java and you can all have at it if you would like: CS163Project.zip.