Tag: java
-
Jun 23, 2010
Reversi game made using J2ME
Since I had fun making a checkers game previously I decided to make a reversi game, again using J2ME. Unlike checkers, reversi is actually a game that I’m reasonably good at! The game has difficulty settings ranging from Novice to Master and a couple of skins.
-
May 17, 2010
Sudoku game made with J2ME
Recently I’ve had somewhat of a sudoku addiction and decided to make a puzzle generator and solver for my phone using J2ME. The game can generate puzzles with a variety of difficulties from Novice to Master. The game’s solver can even be used to key in and play sudoku puzzles that you find in books, etc.
-
Mar 22, 2010
J2ME: Alert followed by Alert
I have been working on a J2ME application. There is an instance where a message box appears so as to confirm an action with the user, if the user confirms the action then a subsequent alert may be shown. Whilst in theory this should have been straightforward the application just kept throwing an
IllegalArgumentException
. -
Mar 14, 2010
Generating and solving sudoku puzzles
My fascination of sudoku started when I was working down the family store; one of my coworkers would do sudoku puzzles during quiet periods. He showed me how to play and I started to wonder how people would actually create the puzzles. I figured that the easiest approach would be to start with a completed grid and then remove as many numbers as possible.
-
Mar 4, 2010
Problems with the JMUnit TestSuite class
I attempted to use the ‘JMUnit’ unit testing library that is shipped with NetBeans for the first time today. I created a couple of simple
TestCase
classes and aTestSuite
that combines each of these. However, every time I attempted to load the test suite I was presented with the following exception: -
Mar 3, 2010
Simplified 'Display' management for J2ME
Switching between displayable objects such as canvases and alerts can become tricky when working on more complex applications. Code can easily become cluttered with excess “display” and “midlet” references, despite that there is usually only one unique display instance.
-
Jan 10, 2010
Checkers game with basic AI in J2ME
I bought a pretty awesome book called “Artificial Intelligence for Games” by Ian Millington and thought that it would be fun to make a simple checkers game for J2ME using the negascout algorithm that the book teaches.
-
Nov 26, 2009
Enhancement on soft-key detection
With many thanks to Graham over at the Nokia Discussion forums I came across an interesting Wiki article (Platform independent key events processing) which provides a class that tries to determine common non-standard keycodes for a variety of handsets. The second handset that I tested was an LG KS360, unfortunately this detection class was unable to detect the soft key buttons.
-
Nov 18, 2009
Generic soft key detection in J2ME
As many of you will be aware, the soft key buttons on mobile phones are general purpose whose purpose change with regard to context. Most popular handsets have two of these directly beneath the screen (one to the left, and one to the right).
-
Aug 25, 2009
My first mobile game
I wanted to have a go at creating my first mobile game so I did some research to find out which tools people are using to do this. I found that games can be made for phones with J2ME (Java 2 Micro Edition) using the NetBeans IDE. Since this is my first J2ME game I just wanted to start with something straightforward. So I created a little game called “Worm” where you just have to collect as many fruit as possible.