Strategic Game of Life
thomashunter.name
thomashunter.name
Please create more puzzles/levels.
And please please try to improve the UI:
- I find "click to toggle" somewhat annoying. Maybe try "click to set", "ctrl-click to unset"?
- A light-grey grid background would make it easier to align shapes.
- Similarly, showing the changing coordinates on mousemove would also help with alignment.
- Highlighting the current grid square under the cursor allows for more confident placement of cells.
- It'd be nice if the canvas was centred on the page.
- Adjustable speed of the simulation. Just a "slow/medium/fast/ultra" selector would be fine IMO.
BTW, do you know about the Hashlife optimization/memoization technique? You probably won't need it to speed up this 64x64 simulation, but in case you hadn't heard about it, check it out because it's a fairly amazing trick (IMHO) and also results in ridiculous speed-ups. See https://en.wikipedia.org/wiki/Hashlife and (from external links) I remember this explanation to be fairly clear: http://www.ddj.com/dept/ai/184406478
I'd love to see it adapted into a physics-driven gridless environment - some kind of fusion of Osmos and cellular automata.
(warning: Processing. Been meaning to port it to JS forever now.)
Here's something I made/discovered that's a little like Tron: http://www.youtube.com/watch?v=VTcH08UgcAE
One that's a little bit life-like: http://www.youtube.com/watch?v=W6sO8ZkgU9s
And this which is kinda strange, but very interesting (vibrating moving solitons/gliders with oscillating worms that emit glider-streams): http://www.youtube.com/watch?v=kKHddTQA7wM
Example pattern files for the latter two of these are distributed in the Ready-0.6 release.
http://www.genjipress.com/xtal
It's being designed as an homage to 1980s arcade games, complete with color-cycling effects.
Still in development, of course -- I'm hoping to have a fully-polished product sometime early next year for various platforms.
I may also add a feature to toggle color-cycling now that I think about it. Just because I like color-cycling doesn't mean everyone else will!
Might want to inline those keyboard instructions on the attract screen.
Check back in the future for a greatly-expanded site.
Shotgun approach, rather than rapier.
Pieces played: 5
Game won in 499 generations.
Won in 234 generations.
function drawArena() {
for (var y = 0; y < CELLS_Y; y++) {
for (var x = 0; x < CELLS_X; x++) {
if (goal.x == x && goal.y == y) {
context.fillStyle = "rgb(0,127,255)";
if (arena[y][x] && !generations_until_beaten) {
winLevel();
}
} else if (arena[y][x]) {
context.fillStyle = "rgb(0,0,0)";
} else {
context.fillStyle = "rgb(255,255,255)";
}
context.fillRect(x * TILE_WIDTH, y * TILE_HEIGHT, TILE_WIDTH, TILE_HEIGHT);
}
}
// Draw playable zone (if applicable)
if (playable.width && playable.height) {
context.fillStyle = "rgba(255,127,0, 0.3)";
context.fillRect(
playable.x * TILE_WIDTH,
playable.y * TILE_HEIGHT,
playable.width * TILE_WIDTH,
playable.height * TILE_HEIGHT
);
}
}
in the javascript console (where 0.3 is the new transparency. It won't show up until you click the next level button.As a Ready file: https://reaction-diffusion.googlecode.com/svn/trunk/Ready/Pa...
[1] http://i.imgur.com/LJLzOpc.png
[2] http://upload.wikimedia.org/wikipedia/commons/3/37/Game_of_l...
This game should have more levels :)
Sorry, its probably unusable on phones and stuff.
ps: code's here if anyone wants to fiddle with it, only 100 lines or so https://bitbucket.org/bjackman/life
yep, this is actually how I just spent about 3 hours of my friday night...
Also it's not fun to draw in the tiny little grid. It would make life much easier if the shapes on the right was draggable to the canvas.
the blue dot can be the "food".
Also, can the plane be made to center, instead of aligning left? I prefer the interaction area to be centered if possible.
I think reading about it will answer several of your questions, but surely some of it is just historical (the glider was discovered 43 years ago): http://en.wikipedia.org/wiki/Glider_(Conway%27s_Life)
http://www.conwaylife.com/wiki/List_of_common_still_lifes
Von Neumann's model was complicated, and in the early 70's Conway created a simplified version, which is this "Game of Life" linked to on this page. I'm not sure where the space metaphors came from. Maybe due to the protean space games then being created. Maybe due to Star Trek or NASA's space program.
6 pieces 866 generations: http://i.imgur.com/pF5TXxR.jpg
After this nothing happens on click to "Next level" except disabling this button.
Fun idea, though.
The UI is a bit better now, still not good though.