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). 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.