A Simple Game (Snake!)

It’s that time of the year: projects/homework/exams. Anyway, I created a ‘demo’ of a class project that’s due next week. I’m still working out subtle bugs with it but I’d like to get a little fancy with it so I’m open to suggestions. Check out the demo on YouTube. For my GUI projects in Java, Eclipse has been invaluable but I’m still using Emacs for my C/C++ coding projects. 

The program requirements specified that the “Snake” be implemented as a queue. Once I got the hang of queues, moving was as simple as repeatedly enqueuing (using queueName.add(item)) and dequeuing (using queueName.remove() to take off the head element). 

Advertisements