Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Game of Life

Name: Anonymous 2014-01-14 2:37

Post your fastest game of life implementation (just to keep things even, 800x800 grid size with wraparound)

Will evaluate at the end of the week to see which is fastest.

Name: Anonymous 2014-01-14 3:37

Forgot to mention, if someone manages to whip up a hashlife implementation in a week, you probably win.

But I won't be benchmarking it with the rest of the submissions.

Name: Anonymous 2014-01-14 4:09

install gentoo

Name: Anonymous 2014-01-15 4:20

no programmers on /prog/

Name: Anonymous 2014-01-15 4:50

>>4
the feel when I don't know who you are quoting ;__;

Name: Anonymous 2014-01-15 4:50

>>4
Tons of them.
We're just lazy gits.

Name: Anonymous 2014-01-15 5:00

I once coded it in lua

Name: Anonymous 2014-01-15 5:05

Started, but when I realised it would require a GUI I stopped because fuck that.

Name: Anonymous 2014-01-15 16:08

>>8
you could do it with ascii if you want

>>4
the whole board

Name: Anonymous 2014-01-15 17:47


import gameoflife

Name: 2014-01-16 8:12


//#include "webkit.h" /* o-oppps! */
//#include "dubs.h" /* no! not that! */
#include "gameoflife.h"

void main(){gameoflife();}

Name: Anonymous 2014-01-16 14:37

#include <string.h>
#define C(x, y) (z[q][(y)*72+(x)])
#define P(x, y) \
C(x-1,y-1)+C(x,y-1)+C(x+1,y-1)+C(x-1,y)+C(x+1,y)+C(x-1,y+1)+C(x,y+1)+C(x+1,y+1)
char z[2][1728],q=0;main(i,x,y,n){for(i=0;i<1728;++i)z[q][i]=rand()&1;do{memset(
z[q^1],0,1728);for(y=1;y<23;++y)for(x=1;x<71;++x){n=P(x,y);z[q^1][y*72+x]=(C(x,
y)&&(n==2||n==3))|(!C(x,y)&&n==3);}q^=1;for(y=0;y<24;++y){for(x=0;x<72; ++x)
putchar(C(x,y)[" o"]);putchar(10);}}while(getchar()!=-1);}

Name: Anonymous 2014-01-16 14:52

>>12
its a virus, dont compile

Name: Anonymous 2014-01-16 15:37

>>12
he meant fast in performance, not number of lines

Name: Anonymous 2014-01-17 3:05

>>13
its a compile, dont virus

Name: Anonymous 2014-01-17 21:25

running out of time /prog/

Name: Anonymous 2014-01-17 23:27

>>16
Aren't we all? It's called the heat death of the universe.

Name: Anonymous 2014-01-17 23:57

zf = [1,1,1; 1,10,1; 1,1,1];
livecells = img == [3, 12, 13];

Name: Anonymous 2014-01-21 21:56

>>18
what language is this?

Name: Anonymous 2014-01-21 22:41

>>19
Looks like dead dog

Name: Anonymous 2014-01-22 0:24

#include <stdlib.h>
int main(void) {
     system("golly");
}

My implementation even has a GUI.

Name: Anonymous 2014-01-22 0:33

Check my dubs, ``kudasai

Name: Anonymous 2014-01-22 0:34

''

Name: Anonymous 2014-01-23 5:09

OP you offering to work for free to create substandard program which already has better equivalents.
No sane programmer would do this.

Name: Anonymous 2014-01-23 12:11

>>22
Fogot to close the quotes you shitlord

Name: Anonymous 2014-01-23 12:49

>>25
Uhh did you even read >>23 ???

Idiot…

Name: Anonymous 2014-01-23 13:13

>>26
How can you guarantee it was the same poster, huh!?

Name: Anonymous 2014-01-23 13:57

>>27
``shalom

Name: Anonymous 2014-01-23 13:58

''

Name: Anonymous 2014-01-23 13:59

>>27
Because it was me.

Look at the post times.

Name: Anonymous 2014-01-24 0:14

>>24
Almost everything you've written has been done before.

Name: Anonymous 2014-01-24 9:01

>>20
It's MATLAB/Octave, you idiot.

Also, >>12 works fine. Impressive. Is that from IOCCC ?

Name: Anonymous 2014-01-24 10:44

>>31
nope, there has never been a tile-based webrtc battle game before

Name: Anonymous 2014-01-24 11:41

    You have been visited by the Costanza of sorrow!
    Post this in 2 other threads or you will die tomorrow!
    ▒▒▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒▒▒░▒▒▒░▒
    ▒░▒▒▒▒▒▄▄▀░░░░░▀▄▄▒▒▒▒░▒▒▒░▒▒▒
    ▒▒▒░▒███▀▀▀▀███████▄▒▒▒▒░▒▒▒░▒
    ▒░▒███▀░░░░░▐███████▌▒░▒▒▒░▒▒▒
    ▒▒██▌░░░░░░░░▀███████▌▒▒░▒▒▒░▒
    ▒▐██░░░░░░░░░░░▀██████▒▒▒▒░▒▒▒
    ▒▐█▌░░░░░░░░░░░░▀████▌▒▒░▒▒▒░▒
    ▒▒█░░░░░░░░░░░░░░▀██▀░░▒▒▒░▒▒▒
    ▒░█░░░░░░░░░░░░░░░▀█░░░▒░▒▒▒░▒
    ▒▒▐░░░░░░░▀▄▄▄▀░▄▀░█░░░▒▒▒░▒▒▒
    ▒░▒░▄█▀▄░▄▀░█░▀▌░░░▀░░░▒░▒▒▒░▒
    ▒▒▒▐░▀░░▌░▌░░░░▐░░░░░░░▀▄▒▒▒▒▒
    ▒░▒▐░░░▐░▒░▀▄▄▄▀░░░░░░▐▒▒▀▀▄▄▒
    ▒▒▒▒▀▀▀░▒░░░░░▒░░░░░░░▐▒▒▒▒▒▒▀
    ▒░▒▒▒░░░░▒▒░░▄▄▒░░░░░▐▒▒░▒▒▒▒▒
    ▒▒▒░▒▒░░▀▄▄▀▀░░▒░░░░▐▒▒░▒▒▒▒▒▒
    ▒░▒▒▒▄▀▄░░░░░░░░░░░▄▒▒░▒▒▒▒▒▒▒
    ▒▒▒▄▀▒▒▒▀░░░░░░░░▄▀▒▒░▒▒▒▒▒░▒▒
    ▒▄▀▒▒▒▒▒▒▀▒▄░░░▄▀▒▒▒░▒▒▒▒▒░▒▒▒
    ▀▒▒▒▒▒▒▒▒▄▄█████▄▒▒░▒▒▒▒▒░▒▒▒▒

Name: Anonymous 2014-01-30 13:11

>>33
i just finished my implementation of this actually

Don't change these.
Name: Email:
Entire Thread Thread List