Game of Life
1
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.
2
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.
3
Name:
Anonymous
2014-01-14 4:09
install gentoo
4
Name:
Anonymous
2014-01-15 4:20
no programmers on /prog/
5
Name:
Anonymous
2014-01-15 4:50
>>4
the feel when I don't know who you are quoting ;__;
6
Name:
Anonymous
2014-01-15 4:50
>>4
Tons of them.
We're just lazy gits.
7
Name:
Anonymous
2014-01-15 5:00
I once coded it in lua
8
Name:
Anonymous
2014-01-15 5:05
Started, but when I realised it would require a GUI I stopped because fuck that.
9
Name:
Anonymous
2014-01-15 16:08
>>8
you could do it with ascii if you want
>>4
the whole board
10
Name:
Anonymous
2014-01-15 17:47
import gameoflife
11
Name:
2014-01-16 8:12
//#include "webkit.h" /* o-oppps! */
//#include "dubs.h" /* no! not that! */
#include "gameoflife.h"
void main(){gameoflife();}
12
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);}
13
Name:
Anonymous
2014-01-16 14:52
>>12
its a virus, dont compile
14
Name:
Anonymous
2014-01-16 15:37
>>12
he meant fast in performance, not number of lines
15
Name:
Anonymous
2014-01-17 3:05
>>13
its a compile, dont virus
16
Name:
Anonymous
2014-01-17 21:25
running out of time /prog/
17
Name:
Anonymous
2014-01-17 23:27
>>16
Aren't we all? It's called the heat death of the universe.
18
Name:
Anonymous
2014-01-17 23:57
zf = [1,1,1; 1,10,1; 1,1,1];
livecells = img == [3, 12, 13];
19
Name:
Anonymous
2014-01-21 21:56
>>18
what language is this?
20
Name:
Anonymous
2014-01-21 22:41
21
Name:
Anonymous
2014-01-22 0:24
#include <stdlib.h>
int main(void) {
system("golly");
}
My implementation even has a GUI.
22
Name:
Anonymous
2014-01-22 0:33
Check my dubs, ``kudasai
23
Name:
Anonymous
2014-01-22 0:34
''
24
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.
25
Name:
Anonymous
2014-01-23 12:11
>>22
Fogot to close the quotes you shitlord
26
Name:
Anonymous
2014-01-23 12:49
>>25
Uhh did you even
read >>23 ???
Idiot…
27
Name:
Anonymous
2014-01-23 13:13
>>26
How can you guarantee it was the same poster, huh!?
28
Name:
Anonymous
2014-01-23 13:57
29
Name:
Anonymous
2014-01-23 13:58
''
30
Name:
Anonymous
2014-01-23 13:59
>>27
Because it was me.
Look at the post times.
31
Name:
Anonymous
2014-01-24 0:14
>>24
Almost everything you've written has been done before.
32
Name:
Anonymous
2014-01-24 9:01
>>20
It's MATLAB/Octave, you idiot.
Also,
>>12 works fine. Impressive. Is that from IOCCC ?
33
Name:
Anonymous
2014-01-24 10:44
>>31
nope, there has never been a tile-based webrtc battle game before
34
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!
▒▒▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒▒▒░▒▒▒░▒
▒░▒▒▒▒▒▄▄▀░░░░░▀▄▄▒▒▒▒░▒▒▒░▒▒▒
▒▒▒░▒███▀▀▀▀███████▄▒▒▒▒░▒▒▒░▒
▒░▒███▀░░░░░▐███████▌▒░▒▒▒░▒▒▒
▒▒██▌░░░░░░░░▀███████▌▒▒░▒▒▒░▒
▒▐██░░░░░░░░░░░▀██████▒▒▒▒░▒▒▒
▒▐█▌░░░░░░░░░░░░▀████▌▒▒░▒▒▒░▒
▒▒█░░░░░░░░░░░░░░▀██▀░░▒▒▒░▒▒▒
▒░█░░░░░░░░░░░░░░░▀█░░░▒░▒▒▒░▒
▒▒▐░░░░░░░▀▄▄▄▀░▄▀░█░░░▒▒▒░▒▒▒
▒░▒░▄█▀▄░▄▀░█░▀▌░░░▀░░░▒░▒▒▒░▒
▒▒▒▐░▀░░▌░▌░░░░▐░░░░░░░▀▄▒▒▒▒▒
▒░▒▐░░░▐░▒░▀▄▄▄▀░░░░░░▐▒▒▀▀▄▄▒
▒▒▒▒▀▀▀░▒░░░░░▒░░░░░░░▐▒▒▒▒▒▒▀
▒░▒▒▒░░░░▒▒░░▄▄▒░░░░░▐▒▒░▒▒▒▒▒
▒▒▒░▒▒░░▀▄▄▀▀░░▒░░░░▐▒▒░▒▒▒▒▒▒
▒░▒▒▒▄▀▄░░░░░░░░░░░▄▒▒░▒▒▒▒▒▒▒
▒▒▒▄▀▒▒▒▀░░░░░░░░▄▀▒▒░▒▒▒▒▒░▒▒
▒▄▀▒▒▒▒▒▒▀▒▄░░░▄▀▒▒▒░▒▒▒▒▒░▒▒▒
▀▒▒▒▒▒▒▒▒▄▄█████▄▒▒░▒▒▒▒▒░▒▒▒▒
35
Name:
Anonymous
2014-01-30 13:11
>>33
i just finished my implementation of this actually