|JSRs 184, 226, and 239: Graphics Capabilities > Mobile 3D Graphics (JSR 184) > Running Demo3D Samples|
Life3D implements the popular Game of Life in three dimensions. Live cells are represented by cubes. Each cell has 26 possible neighbors (including diagonals). For each step of the animation, cells with fewer than four neighbors die of loneliness, while cells with more than five neighbors die of overcrowding. An empty cell with exactly four neighbors becomes a new live cell.
The view of the playing board rotates slowly so you can view the board from all angles.
The keypad buttons in Table 1 provide control over the game.
See the source code for this example is at installdir\apps\Demo3D\src\com\superscape\m3g\wtksamples\life3d\Life3D.java.
ing HTML relocated from here.