- January 2006 (1)
- January 2007 (1)
- July 2007 (8)
- August 2007 (3)
- September 2007 (3)
- October 2007 (2)
- November 2007 (3)
- January 2008 (5)
- February 2008 (4)
- March 2008 (1)
- April 2008 (5)
- June 2008 (3)
- July 2008 (2)
- August 2008 (1)
- September 2008 (6)
- November 2008 (3)
- December 2008 (1)
- January 2009 (4)
- March 2009 (1)
- April 2009 (14)
- May 2009 (9)
- June 2009 (7)
- July 2009 (6)
- August 2009 (4)
- September 2009 (4)
- October 2009 (2)
- November 2009 (23)
- December 2009 (23)
- January 2010 (4)
- February 2010 (3)
JacksOrBetter as a Web App
A little over a year ago, I created my first iPhone app, JacksOrBetter. As an exercise in learning CSS, JavaScript, and jQuery, I've created a web-based version of JacksOrBetter.
It should work on any decent web browser (that is, one that has good implementations of JavaScript and CSS2). It uses a few WebKit-specific features, so it looks a little better on Safari and Google Chrome than it does on Firefox and Internet Explorer. It doesn't require Flash or Java; it's just plain-old HTML, CSS, and JavaScript.
If you'd rather control it with the keyboard then by clicking buttons, you can use the space bar to deal/draw, and you can use the numeric keys 1, 2, 3, 4, and 5 to specify which cards to hold.
Implementing a jacks-or-better poker game is my standard exercise for learning a new programming language or development platform. It is simple, without being trivial. The user interface can be very simple or very complex, depending upon my mood.
While this app is basically functional now, there are still a lot of features and refinements to be added. For example, I need to show a payout table. The animations could also use improvement.
While this app works fine in a desktop browser, I'm really targeting it at the iPhone and similar platforms. Right now, it is a bit sluggish on iPhone. I'm going to start playing with jQTouch to give it more of a native-app feel.
One nifty feature that does work on the iPhone is that, after initial loading from the web, it can be run while offline.
I'd be interested to hear how well it works on Android and Palm Pre. It works on the emulators, but I don't have actual devices to test. Please let me know.
Recent comments
4 days 1 hour ago
1 week 3 days ago
1 week 3 days ago
1 week 4 days ago
1 week 5 days ago
3 weeks 3 days ago
3 weeks 5 days ago
3 weeks 6 days ago
5 weeks 5 days ago
6 weeks 1 day ago