Hacker Newsnew | past | comments | ask | show | jobs | submit | kevinAlbs's commentslogin

I was pleasantly surprised when a friend texted me after work to say this game was on Hacker News. I hope it brought some small joy to your day. Some comments helped identify some minor tweaks. I do not expect to have time or motivation to make bigger changes soon. Feel free to make GitHub issues.

You might find this fun. There this sonic the hedgehog special stage from sonic three that takes place on a sphere. Recently I made a remake of it and they project a 2d grid onto a sphere, but the projection adjusts as you move, so no matter where you go, you never end up at a pole. The poles always stay on your sides.

The other interesting bit is that you can have an arbitrary map size and just repeat it. The game is 32x32 but it could be whatever.

https://blue-sphere.fly.dev/play?map=s3-01

Anyway, great stuff you have here!


Is this AI made?

I was unsure of the licensing, so happy to take it down if it's not open - but I forked this to test some agent features on GitHub mobile and was happy with it. https://hpsin.github.io/SphericalSnake/ and the PR I single shotted for testing https://github.com/hpsin/SphericalSnake/pull/1

Thanks for a fun mobile friendly test run!


Nice :) TIL you can use an agent on GitHub mobile. And this reminded me to add an open source license. I added an MIT license.

Absolutely great. Seems easy at first then you start realize you need very different strategies when the snake is very long. Thanks :)

Hypersnake! We need hypersnake! Snake on the surface of a hypersphere [1]! (Cubes can come too.)

[1] https://mathworld.wolfram.com/Hypersphere.html



Came here to say this! I need to see this in a hypersphere

The theme song can be "Spiderpig" from The Simpsons Movie, but it's hypersnake.

I just want to say I love this idea and execution. Great work, please make more :)

Thanks for writing this game! I came across it after seeing your Checkers written in Rust for WASM game[0], and thought it deserved an HN submission of its own.

[0] https://github.com/kevinAlbs/Checkers


Hah. I am unsurprised. I disabled posting to the leaderboard and removed scores that seemed fake or profane.

Thanks for the heads up. I added a (hopeful) fix to disable the right-click context menu on the buttons.

Updated with a fix to prevent default double click events. It fixes on my iPad environment.

I can reproduce a zoom on an iPad Safari when double tapping. Updated with a fix to prevent default double click events. It fixes on my environment.

Hello, original author here. I was delightedly surprised to see this game got attention. I believe I referenced https://wcdf.net/rules.htm when writing the game. The game has been updated. If a piece is clicked and has no moves, pieces with moves are briefly highlighted.


I believe I referenced https://wcdf.net/rules.htm for rules. I had these questions myself when writing the game. Updated the README to link to the intended rules.


Base-122 encoded strings may contain single quotes but not double quotes. The choice between the two was arbitrary.


Good point, I will change that.


Great tips, but if I remember correctly the Italian movie is called La Vita e bella.


It's called "La Vita è bella"


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: