Live data from Hacker News

Show HN: Multiplayer Snake in Go

hipstersnake.com

51–60 of 80 posts

Re: Show HN: Multiplayer Snake in Go

#51

This is amazing. I have fond memories of playing Lightcycle/tron-style games on some older computers against my brother as a kid. We got that program installed and we played forever. This has a lot of potential, some suggested improvements: * Chat System * Rematch (both players agree, then yes, one says no, then no) * Names for players I like this and I'm sure you could monetize this with ads if you wanted to. Have y…

Thanks for your feedback! A chat system might get a little ugly, but I like the rematch idea!

Also, have the two snakes face each other when they start. This teaches the users from the first second into the match that they can, and must, control the snake.

Great job; totally wasted a morning on this.

Re: Show HN: Multiplayer Snake in Go

#53
post #28

Earlier quoted context omitted.

I agree the ability to kill your self with a 180 kinda sucks. It's not fun when you do it to yourself and it is not satisfying when your opponent does it either. I would make sure that it was impossible to do.

Just fixed the bug. I need to take it down for about a minute to deploy, so I'll deploy this when the traffic is lower.

For your next trick, structure it for hot redeploy.

Re: Show HN: Multiplayer Snake in Go

#54

The controls don't react if you press them too quickly. How about queueing up key presses and then each additional step of the snake would dequeue a key press?

As an expert in this area (I implemented snake, once, in ascii for kicks) the problem with that approach is there's no way to undo your presses. So if you erroneously press left when you meant to press right, you're screwed. The best control strategy I found, and the one that seemed to correlate with classic implementations, is to simply take the most recently pressed key at each tick, and only allow the keys that co…

Ah, but then you can't do a quick U-turn. I think ideally you'd queue up to two moves, the second always being a 180 if any, but if you change your mind it clears the queue. E.g. you're going right, you can queue up-left or down-left but if you hit up-left-up you just go up, up-left-right you just go right, etc.

Re: Show HN: Multiplayer Snake in Go

#59

Earlier quoted context omitted.

Thanks for your feedback! A chat system might get a little ugly, but I like the rematch idea!

Also, have the two snakes face each other when they start. This teaches the users from the first second into the match that they can, and must, control the snake. Great job; totally wasted a morning on this.

Good idea. I'll add that.
Post reply on HN