Fork us on GitHub

You Can Bet On It

Recently the guys from Software Developer Journal contacted u...
Post Image

You Can Bet On It

Recently the guys from Software Developer Journal contacted us about writing a mobile gaming article , since quite a few Codename One developers use it to write games we decided to accept the offer and I wrote an article titled: "Writing casual games In Java for mobile devices". In this article we create a simple poker game mockup that is fully functional (although it doesn't include betting, AI or networking), but you can drag the cards to have them replaced and click the deck to deal new cards.

The game took 270 lines of code (including imports, its a bit larger now since I commented the code quite a bit ), it took me roughly 2 hours to write that code. The issue will be published in the 19th of August but you can preorder it here . If there is major interest in this I can expand the demo a bit more to include additional features.

As a teaser I took a very unique approach to writing the game, rather than use graphics I used components and leveraged the resolution independence of Codename One as much as possible.

BTW I understand that a Yaniv Nitzan of SOOMLA who wrote a popular guest post here will also be featured in this issue .

Notice: This post was automatically converted using a script from an older blogging system. Some elements might not have come out as intended.... If that is the case please let us know via the comments section below.

Share this Post:

Posted by Shai Almog

Shai is the co-founder of Codename One. He's been a professional programmer for over 25 years. During that time he has worked with dozens of companies including Sun Microsystems.
For more follow Shai on Twitter & github.