- Fix formatting issue to keep scoreboard static
- See if I can simplify some of the functions I put together
- Increase history so that more than one play can be undone
- Store and display statistics based on player name
- Allow for other dart games
A mirror of my blog that I host. Mirroring it here just to provide an additional backup. Check out the real deal at http://www.justinandrewfincher.com/
Wednesday, March 28, 2012
Getting back into Android Programming: Dart Scorer
The other day I played a few rounds of darts at Corner Pocket and found myself really wishing that I had a dartboard of my own. I recalled that we used to have one in the basement in Bristol, and I didn't think it was being used so I asked Mom and she said it was all mine. I get to pick it up next weekend, and I am pumped! Knowing that I will soon have access to throw a round of darts whenever I like, I thought it would be cool to go a little above and beyond the normal chalk or whiteboard scoreboard. I searched the Android Market (or Play store or whatever it is called now) and downloaded and tested no less than 5 apps made for dart scoring. Now I am not sure what is most popular in the dart throwing world, but apparently everyone plays 301 or some variant thereof. Of the apps I tried, only 1 even claimed to score cricket (the game my friends and I always play) and it turned out to be pretty much non-functional. I decided that the situation presented completely embodied one of the primary advantages of Android that I laud to those around me: at a cost of $0 I can write the app I need myself! Most of the time, apps I am looking for are either too complicated to really tackle or the apps available are close enough but not perfect. This time, there was a complete lack of any app providing the function that I needed AND it seemed like it would be a pretty simple app to put together. So I downloaded all the necessary development software (as I will point out again, at no cost) and tried to revive the Java programming portion of my brain. After programming almost solely in Python for the past couple of years, I was definitely a little rusty. Also, because I hacked it out starting yesterday, there are definitely some conventions I used that I am sure could be done way more efficiently and elegantly. Mayhaps I will continue to revise and improve, but first iteration was all about functioning! I got it to a place that I am pretty happy with and that seems to be functional and error free enough to serve my purpose.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment