Sunday, July 8, 2012

This isn't exactly (remotely?) Oracle. But it is related to FizzBuzz.
Here's the deal: Ever since I got my Droid Pro I've had this curiosity about what it would take to program something on it. And, the FizzBuzz puzzle inspired a simple (the kind word) game for it. Since I do not want to be known as a copycat, I decided to name my game 'RatCat'. Very simple game. I imagine the screen having a line reading:



The RAT Says:

Followed by a field which would start out at '1'
Beneath this, there should be a line reading:



But You Say:


Followed by a data entry box, and a button labeled "Submit".

Obviously (?), the player is supposed to respond '2', and the game responds 'RAT'. The successful player will then enter '4' and the game will respond 'CAT'. This back-and-forth continues until the number '50' ('CAT') is reached, which results in a 'You Win' being displayed. To my way of thinking, this is a much more interesting game than Angry Birds. And this game would actually be worth the price.

The first thing I discovered is that writing Android Apps requires a lot of software to be loaded.
In Order:

  1. Eclipse Classic for 64-bit Linux
  2. The Java SDK (I already had an JRE, but that isn't enough here
  3. The Android SDK
  4. The Android Development Toolset plugin for Eclipse
And that is just the beginning. The next steps are to use Eclipse to install an Android platform and create an Android Virtual Device. The steps are outlined in the "Hello World"tutorial , so I won't go into more detail here. Suffice it to say that the troubleshooting guides almost got me through it all.

The one exception was when I tried to compile using Eclipse. I had been doing testing with java from the command line, and I thought I had java installed just fine. But, when I tried to use Eclipse I found myself with some strange java errors. It turned out that I had GCJ installed as my "sort of" java. Getting a propper java installation fixed everything.

No comments: