Blog

CommandBox Snake- All In Good Fun

Brad Wood February 16, 2015

Spread the word

Brad Wood

February 16, 2015

Spread the word


Share your thoughts

As I always say, "All work and no fun makes you a dull programmer!"  Well, with CommandBox, we're here to fight boredom and productivity with the fun "Snake" game.  This is the classic game of moving an-ever growing snake around the map in 4 directions while eating up the apples.  For every apple the snake devours, it grows by one character in length.

I prefer to use the numeric keypad to move the snake left, right, up and down with the 4, 6, 8 and 2 keys.  Once you run into a wall or your own tail, it's game over man.  Here's a screenshot of my high score (130).  I'm challenging someone to beat this and prove it by tweeting a pic.

To play the snake game, just type the snake command.

CommandBox> snake

Download CommandBox here.

Add Your Comment

Recent Entries

Introducing numeric placeholders in BoxLang source!

Introducing numeric placeholders in BoxLang source!

Introducing Numeric Placeholders in BoxLang

We're excited to announce a new addition to our BoxLang parser—a feature that draws inspiration from several other languages but fits naturally within BoxLang. The conversation around which features from other languages m...

Maria Jose Herrera
Maria Jose Herrera
September 18, 2024
BoxLang 1.0.0 Beta 14 Launched

BoxLang 1.0.0 Beta 14 Launched

In this release, we are excited to introduce several new features and enhancements aimed at improving functionality and user experience. These updates include the creation of immutable query types, new server keys to aid on CLI tooling, and methods to identify runtime initiation modes.

Additionally, we've added an event announcement for dump rendering to enable better integration with external listeners. Read on to learn more about these features and how they can benefit your workflow.

Code Strong!

Luis Majano
Luis Majano
September 13, 2024
Are you attending Adobe CFSummit 2024?

Are you attending Adobe CFSummit 2024?

If you are attending the Adobe ColdFusion Summit 2024, this is what you need to know: As always, Ortus Solutions will be sponsoring this years event as Silver Sponsors, we are excited to meet all the new attendees and old friends of the community of Coldfusion developers

Maria Jose Herrera
Maria Jose Herrera
September 10, 2024