Java4K - Minimum Games, Maximum Fun!

View Game: Conway's 4k Game of Life

Conway's 4k Game of Life

By Duncan Horn, submitted on Jan 23, 2012
Min JRE version: 1.6
This game was submitted in the Java4K 2012 Competition.
Source code available! Show source code

(Click on game for focus)

You need Java installed to play this game.
You may use the button below to get it.

Get Java


This is an idea I had a while back, and I had nothing to do today since my textbook didn't come in the mail, so I decided to code this up. Basically, it uses the rules of Conway's Game of Life (read up on it here:'s_Game_of_Life) only it's a verses battle. The game starts by giving both you and the computer as much time as you need (until you press space) to set up your defenses. There is then a repeating pattern of 20 seconds of execution followed by 10 seconds of building. You can place squares during both of these time periods, just take note that placing a square during the middle of nowhere during execution will almost immediately go away. The goal is to get one of your squares into the opponent's "goal" before they do the same to you.

Game of Life Rules (from Wikipedia):
1. Any live cell with fewer than two live neighbors dies, as if caused by under-population.
2. Any live cell with two or three live neighbors lives on to the next generation.
3. Any live cell with more than three live neighbors dies, as if by overcrowding.
4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction. For this game, the color of the cell that is "birthed" is the color that neighbors the cell 2 or 3 times.


Mouse - Place red squares (You are the "bottom right")
Space - Start the game after you are done placing squares at the very beginning.

You cannot place on the computer's side of the field (the "top left") and you cannot place in your "goal" (the 5x5 square in the very bottom right). Your goal is to get a red square to "birth" in the computer's "goal" (the 5x5 square at the very top left).

User Comments

Total 1 comments:

#1 By Marwane Kalam-Alami Jan 24, 2012 at 14:50:10
Hi, I have focus issues when pressing Space (even when doing so immediately after clicking on a few cells) =( Good idea anyway!

You need be logged in to write comments. If you need to register click here.