RaananW Posted September 1, 2015 Share Posted September 1, 2015 So, I just got back from a long vacation, on my way to the next one, and I have some time to spend in between!I always thought it would be nice to see how many different implementations can be written for a single task (unlimited, really), and what's a better way than to give the people at the forum a monthly to come up with a solution for a silly task! Yei!!!So, I suggest a monthly challenge. And I want to offer the first:3D Game Of Lifewhich one of you haven't implemented game of life? they are always (well, not always, but usually) 2D. let's see how you create a 3D version of it!The rules are simple (copied shamelessly from this page - http://gameoflife.samuellevy.com/, written in this other framework that none of you should even know. something with three. and js.)Cells (in this case, cubes) with only 1 or less neighbors die, as if by loneliness.If 5 cells surround an empty cell, they breed and fill it.If a cell has 8 or more neighbors, it dies from overcrowding.I promise to participate as well!Submit your solutions (preferably as a playground link) to me (using PM), and I will post all of them on October 1st as a poll. Try to be original, that's the entire idea.The winner will be decided here in the forum, and will win respect and honor. And a bottle of beer if you are ever in Berlin.So! Who wants to participate? jerome, Temechon, Jaskar and 2 others 5 Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 1, 2015 Share Posted September 1, 2015 Nice idea! I looove it Ok, I will try it. What do you mean by being original ? Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 1, 2015 Author Share Posted September 1, 2015 Goood! Would be so nice to see your version :-) Original - Different types of polygons, nice looking transitions, audio, somehow integrate physics? Dunno, anything that will make everyone else go "wow, I wish I could come up with it!". Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 1, 2015 Share Posted September 1, 2015 Lovely!!!! Quote Link to comment Share on other sites More sharing options...
jahow Posted September 2, 2015 Share Posted September 2, 2015 Nice idea Raanan, well done Would love to participate if I find the time! RaananW 1 Quote Link to comment Share on other sites More sharing options...
Blax Posted September 3, 2015 Share Posted September 3, 2015 Pretty look can make, if use metaball's, but BJS till not support this I play in "life" on squared paper, when was a kind Rules was easier - 5 cell around is overcrowding, 3 cell around - give new life. Quote Link to comment Share on other sites More sharing options...
JohnK Posted September 4, 2015 Share Posted September 4, 2015 Working on the challenge - good clean time consuming fun RaananW and jerome 2 Quote Link to comment Share on other sites More sharing options...
iiceman Posted September 6, 2015 Share Posted September 6, 2015 I was trying it out, too. But I messed up and my script was running too long, chrome crashed and everything was gone.... didn't save the playground for a while... now I am sad and don't wanna start over again Quote Link to comment Share on other sites More sharing options...
fenomas Posted September 7, 2015 Share Posted September 7, 2015 Hmm. I implemented a naive 3D game of life for a talk I gave a few months ago. It wouldn't be in the spirit of your contest to enter it here, but if anyone wants to borrow the Life implementation you're certainly welcome to. Demo: http://andyhall.github.io/noa-lt/(WASD to move, "3" to place game-of-life blocks, and "4" to start/stop the Life game iterations. "I" to invert mouse.) Life implementation: https://github.com/andyhall/noa-lt/blob/master/lib/conway.jsNote that this implements "4555" life, but it's trivial to change to a different ruleset. (3D life rules are referred to as ABCD, where dead cells must have A~B neighbors to get born, and living cells must have C~D neighbors to stay alive. 4555 is one of the relatively few rulesets that have "interesting" behavior, like blinkers, gliders, etc.) jerome, iiceman, Jaskar and 1 other 4 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 8, 2015 Share Posted September 8, 2015 OMG that's huge! Quote Link to comment Share on other sites More sharing options...
JohnK Posted September 9, 2015 Share Posted September 9, 2015 The site Some Game of Life Objects lists some 3D gliders for different rules. Note they list the rules as A-B C-D where living cells must have A~B neighbors to stay alive and dead cells must have C~D neighbors to get born. This proved useful in checking my code (especially as it had some errors ) Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 9, 2015 Share Posted September 9, 2015 Challenge submitted! It was fun, especially when I hit F5 on the playground and I had to restart from scratch RaananW and Jaskar 2 Quote Link to comment Share on other sites More sharing options...
JohnK Posted September 10, 2015 Share Posted September 10, 2015 Perhaps if there is enough interest after a couple more challenges this topic could be pinned. Also what do people ( especially RaananW Quote Link to comment Share on other sites More sharing options...
Jaskar Posted September 18, 2015 Share Posted September 18, 2015 Hi there, I think that's a good idea !!!For now, I have just implemented the system and the rules. I choose 5/6,5/5 because yours always ends up with a stable world after a few steps. Plus, I just learned TypeScript to do this, and it's a great! Reminds me C# moments... jerome 1 Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 18, 2015 Share Posted September 18, 2015 You have to PM it to Ranaan! Quote Link to comment Share on other sites More sharing options...
MidnightCow Posted September 19, 2015 Share Posted September 19, 2015 This is a really cool idea! fenomas - That looks like a pretty solid basis for a minecraft implementation, how long did it take to create? Jaskar 1 Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 24, 2015 Author Share Posted September 24, 2015 Reminding all! One week left, I got so far 2 implementation (and am working on mine as well :-)) Come on, spend an hour or two, would be fun!! Quote Link to comment Share on other sites More sharing options...
Jaskar Posted September 24, 2015 Share Posted September 24, 2015 I got so far 2 implementation Come on, spend an hour or two I'll try to convert mine for the playground. Quote Link to comment Share on other sites More sharing options...
fenomas Posted September 24, 2015 Share Posted September 24, 2015 This is a really cool idea! fenomas - That looks like a pretty solid basis for a minecraft implementation, how long did it take to create? I've been working on it off and on for about a year now To be precise, I'm working on a game, and that link was a one-off demo for a talk I gave about the engine I've made. The engine part (that manages rendering the voxels) is here, it's OSS so feel free to use it or hack on it. Jaskar 1 Quote Link to comment Share on other sites More sharing options...
iiceman Posted September 25, 2015 Share Posted September 25, 2015 I started another try... I hope I can get it to work... but somehow it's not as easy as I thought it would be... but I am making progress RaananW 1 Quote Link to comment Share on other sites More sharing options...
iiceman Posted September 27, 2015 Share Posted September 27, 2015 Any good starting positions for the given rule set that I can try out for testing? I think it works... but I am having performance problems (not babylon, but my code), probably due to my inefficient way of checking the neighbors Soo... whats the goal... I mean, at some point it has to run into performance problems, right? How big do you "colonies" get? For me it already feels slow when iterating over 1000 people. Getting slower and slower the more are born and hitting the script runtime limit of my chrome browser at about 6000. So if you guys say you make colonies up to 100 000 I know I am doing something wrong here Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 27, 2015 Author Share Posted September 27, 2015 I am testing with a 25x25x25 room, but it doesn't really matter. Do your thing the way you want it Quote Link to comment Share on other sites More sharing options...
fenomas Posted September 28, 2015 Share Posted September 28, 2015 Any good starting positions for the given rule set that I can try out for testing? This link from the previous page notes a few structures. But generally, the idea of an "interesting" ruleset in Life is that, if you fill a given space randomly and then iterate, there will be some chance of an interesting result (i.e. not collapsing to nothing). When I did my demo I used 4555 because I wanted an easy glider, but generally I found that random inputs always collapsed to nothing very quickly. I haven't tried other rules much. Regarding size, I'd think 20-30 cubed should be achievable, so you might want to find the hot spot in your code and optimize. But even a 10x10x10 space can show interesting behavior. Remember you can wrap around the edges if you want, so that for example gliders keep going forever. Quote Link to comment Share on other sites More sharing options...
MasterSplinter Posted September 28, 2015 Share Posted September 28, 2015 Fig Newtons! I was just looking for some inspiration on something to do and I just now saw this thread? Are you going to do another competition in october? Quote Link to comment Share on other sites More sharing options...
Jaskar Posted September 28, 2015 Share Posted September 28, 2015 @Iiceman :As I said on the previous page, I have these rules : 5/6,5/5.I test with 11*11*11 , and it runs pretty smooth on my laptop.Your cells have a nice look Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.