1k Game of Life
(Warning: If you are sensitive to flashing lights, I recommend you don't run this)
This is Conway's Game of life (https://en.wikipedia.org/wiki/Conway's_Game_of_Life) in under 400 characters (and here is the proof):
g={}for y=0,128 do g[y]={} for x=0,128 do if((flr(rnd(2))+1)==1)g[y][x]=true else g[y][x]=false end end
::★:: cls() ng={} for y=0,128 do ng[y]={} for x=0,128 do nc=0 for dy=-1,1 do for dx=-1,1 do if not (dy==0and dx==0)and g[y+dy]and g[y+dy][x+dx] then nc+=1 end end end
ng[y][x]=nc==3or(g[y][x]and nc==2) if(g[y][x])pset(x,y,7) end end
g=ng flip() goto ★
Status | Released |
Platforms | HTML5 |
Rating | Rated 1.0 out of 5 stars (1 total ratings) |
Author | silicon14 |
Genre | Simulation |
Made with | PICO-8 |
Tags | 1k, conway-game-of-life, game-of-life, PICO-8 |
Download
Download
1klife.p8.png 3.9 kB
Comments
Log in with itch.io to leave a comment.
Why did you steal the name for my game?
I didn't, I wasn't aware of your project, plus my game was published over a year ago, while your game was published 2 days ago. I can't find any post through google before then, and the only links I could find on google are two dead links.
Im pretty Sure Paper Made his first cuz its on top of itch when you search up 1k life, and besides if you made it first i still think PaperMonkey25 made a better game cuz yours is just black and white pixels going everywhere and PaperMonkeys game is a 3d game where you can actually do stuff.