Live data from Hacker News

Show HN: Multiplayer Snake in Go

hipstersnake.com

41–50 of 80 posts

Re: Show HN: Multiplayer Snake in Go

#43

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 correspond to left and right relative to your snake's direction.

Re: Show HN: Multiplayer Snake in Go

#44

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!

I would pay to play snake tournaments! Look into this please.

Re: Show HN: Multiplayer Snake in Go

#45

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…

Might be hard to chat and play snake at the same time. I guess you could smack talk between matches.

Re: Show HN: Multiplayer Snake in Go

#50

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…

This. Nokia 3310 style.
Post reply on HN