News for hackers. Stuff that matters.
Re:Conway's Multiplayer Game of Life by drewblaisdell on Tuesday July 29, 2014 @09:21PM (#8105949)
Author here.

The front page of HN is proving to be a great way to stress test this. I'm surprised NginX (serving the static content) and Node.js (all the websockets communication) is handling 50+ players, no problem.

Re:Conway's Multiplayer Game of Life by ejr on Tuesday July 29, 2014 @09:27PM (#8105963)
I seem to have lost my bits :-) Somewhere out there are 2 blue boxes that I can't tell apart from a sea of other blue boxes.

This is thoroughly fun!

Re:Conway's Multiplayer Game of Life by drewblaisdell on Tuesday July 29, 2014 @09:34PM (#8105968)
If you click a cell and it becomes occupied before you can click the "place cells" button, you can either click the cell again to "unflag" it, or refresh the page. I'm assuming this is the problem you're describing.

I should add some hover-state that shows the cell's owner on the board.

Re:Conway's Multiplayer Game of Life by ejr on Tuesday July 29, 2014 @09:36PM (#8105979)
Ah yes, a hover state to show the owner's cells would be perfect.
Re:Conway's Multiplayer Game of Life by CyberShadow on Thursday July 31, 2014 @04:05AM (#8112950)
That was a lot of fun, thank you!

Apologies if I went a little overboard on the fun.

Re:Conway's Multiplayer Game of Life by drewblaisdell on Thursday July 31, 2014 @04:10PM (#8116684)
It's you!

That high score is impressive (even with a bot). I'm not sure if you noticed that others were at one point rallying against you. Someone created a player named "down with CyberShadow".

Re:Conway's Multiplayer Game of Life by 3327 on Tuesday July 29, 2014 @10:13PM (#8106053)
where are you running it? Nginx on a single box can handle 300 connections with 2 cores and 3-4 gb ram
Re:Conway's Multiplayer Game of Life by drewblaisdell on Tuesday July 29, 2014 @10:28PM (#8106097)
It's running on a $10/month 1 GB memory/1 CPU droplet on Digital Ocean. Nginx is letting the websockets connections through to Node.js, and I'm assuming Node.js is what would crash first.
Re:Conway's Multiplayer Game of Life by ecopoesis on Tuesday July 29, 2014 @10:43PM (#8106136)
This reminds me of David Brin's book Glory Season, where a common pastime for the characters is the play a competitive version of the Game of Life.

http://en.m.wikipedia.org/wiki/Glory_Season

Re:Conway's Multiplayer Game of Life by cben on Monday August 04, 2014 @10:04AM (#8131747)
Nice! Simple tactics I found so far:

1. Place an http://www.conwaylife.com/wiki/R-pentomino wherever there is lots of space and you have 5 to spare. Or another http://www.conwaylife.com/wiki/List_of_long-lived_methuselah... (sort by initial population).

2. Free-ride on others' cells to create some fertile configuration with less than 5 investment. In most cases this benefits the original owner more than me.

- Add a 3-line to a block (or anything with a 2-cell side):

   xx
   xx
     OOO  <- my 3 cells

  This resembles one of the predecessors of an r-pentamino and grows nicely.

 - Add 2 "ears" to a blinker — a complete takeover!:

   OxO
    x
    x

 - Add 2 onto some diagonal edge, e.g. beehive:

    xx
   x  x
    xxO
     O

   This is very sensitive to what I attach to, e.g. in this variation my cells die out:

    xx
   x  xO
    xxO
Re:Conway's Multiplayer Game of Life by drewblaisdell on Wednesday August 06, 2014 @11:54PM (#8146215)
Nice. I hadn't considered attaching three cells to another player's block.

Another tactic that I've seen in the game is to use 1-3 cells to cause other patterns of >10 cells to "self-destruct". This can work directly in your favor if another player's cells are obstructing a future growth-path of one of your methuselahs.

Re:Conway's Multiplayer Game of Life by cben on Thursday August 07, 2014 @07:44AM (#8147167)
I pretty much gave up on real-time interaction with dynamic structures as I have no idea what it'll do. It would much more practical if the game gave a glimpse into the future, including effects of cells I marked for placement but didn't commit yet. Something in the spirit of https://www.youtube.com/watch?v=xg0PKAvL01Y only looking into the future rather then past.
Re:Conway's Multiplayer Game of Life by drewblaisdell on Sunday August 10, 2014 @10:18AM (#8159772)
That is another good idea. I may implement that as well.

The problem I'm focusing on at the moment is that the game is both less challenging and less fun when fewer players are online (if you have any ideas to increase player retention/engagement or make the game seem more "active" when fewer players are online).

Re:Conway's Multiplayer Game of Life by cben on Monday August 11, 2014 @02:51AM (#8162242)
Frequently I was out of cells to place and waiting for a sufficient number to do something interesting is boringly slow. I found myself wasting 1-2 cells on mostly ineffective gambits because I was too impatient to wait for 3+... Or I could switch away, and at some point come back later with 12 cells - but that could be half a hour later.

1. show number of cells-to-place in tab title / favicon. Helps with switching away but coming back when I have something to do.

2. consider having several "rooms" so an active player can always have something to do without entirely switching away. Or instead of independent rooms have a larger map with distant areas of it having independent supply of cells.

Wilder idea: the game runs so slow to let you carefully place many cells, and give _some_ hope of reacting events in real time, right? What if it run faster but you could enter "bullet time" when you're placing cells? Moreover, what if you could unwind time back a few steps?! The latter sounds especially cool, because it gives limited foresight (and ability to experiment) within the same interface. This can be allowed without inconsistency due to speed-of-light delay, under baddox's idea where each player can only place cells in a separate area. Maybe even possible in some adaptive way with unrestricted gameplay, but much harder.

Re:Conway's Multiplayer Game of Life by baddox on Wednesday July 30, 2014 @02:00AM (#8106646)
Great concept. The generation rate is too low for me to stick around though. It might be more interesting to do 10 or 20 generations per tick.

When I read the headline, I was imagining an endless board where each player got a grid, say 20x20, where he could place anything he wanted, and all the boards would be right next to each other so you could try to "invade" your neighbors.

Re:Conway's Multiplayer Game of Life by nazgulnarsil on Wednesday July 30, 2014 @03:40AM (#8106832)
this version sounds great too!
Re:Conway's Multiplayer Game of Life by lifeisstillgood on Wednesday July 30, 2014 @08:49AM (#8107744)
I do like this - can't wait for the sequels:

- Conway - the first person shooter

- Conway II - no more nice evolution

- Conway text-RPG - "life! don't talk to me about life!"

- Conway multi-levels "The high life"

- Conway or the highway

- Conway the Barbarian

(I think it's time I stopped)

Nice one.

Re:Conway's Multiplayer Game of Life by _djhrtmn on Wednesday July 30, 2014 @12:55AM (#8106442)
Very cool! I was able to use some 'strategies' for cell placement that I learned while making this:

http://dj.github.io/react_game_of_life/

It started as just an attempt to create the game of life in react, but as I started to add some interactivity to it, I started to wonder if there was an actual game in there somewhere. Never really figured out what I wanted to do with it though.

Re:Conway's Multiplayer Game of Life by stared on Wednesday July 30, 2014 @05:25AM (#8107137)
I never thought about Game of Life as a game (great job, thanks for sharing!). If it can be made "multiplayer" then "strip" does not sound ridiculous anymore (http://xkcd.com/696/, http://konstochvanligasaker.se/stripgameoflife/).
Re:Conway's Multiplayer Game of Life by rsivapr on Wednesday July 30, 2014 @01:49AM (#8106616)
Interesting. I extended the Game of Life to three states instead of the usual two states when I was learning javascript. Just a fun little hack.

http://bl.ocks.org/rsivapr/6108940

Re:Conway's Multiplayer Game of Life by lytedev on Friday August 01, 2014 @05:15PM (#8122842)
Finally, after much ado, top ranked (except for that amazing bot).
Re:Conway's Multiplayer Game of Life by yincrash on Tuesday July 29, 2014 @10:14PM (#8106058)
Oddly, my highscore dropped. It was 35, then it went to my current score of 26. Does your highscore reset when you lose all your bits then start to place more?
Re:Conway's Multiplayer Game of Life by drewblaisdell on Tuesday July 29, 2014 @10:25PM (#8106082)
Nope, the server crashed and restarted! Some of the local data on your client was out of sync with the server during the restart (at least, that is my best guess).
Re:Conway's Multiplayer Game of Life by Al-Khwarizmi on Wednesday July 30, 2014 @06:33AM (#8107292)
Does not work in Opera 12.17 - I click "Play" and nothing happens, although my nick appears as taken if I try to use it from another browser.
Re:Conway's Multiplayer Game of Life by tempodox on Wednesday July 30, 2014 @07:33AM (#8107485)
Strange, I only see a growing & collapsing circle. Game of Life isn't supposed to be that boring.