4 ms·
Yeah your game just scratches an itch I had for a long time. Mobile games are filled with ads and in-app purchases and I never found a simple game I could play
by 4ggr0 4y ago
Yeah your game just scratches an itch I had for a long time. Mobile games are filled with ads and in-app purchases and I never found a simple game I could play and enjoy while waiting for public transport. Want to fully clear a seed now, haven't gotten that far yet ;)
Ahh, a single .html would probably work, too, sounds way easier!
I downloaded Termux, installed git and python3 and now your game is running locally on my phone with "python3 -m http.server --bind 127.0.0.1 9000" :)
- bussyfumes 4y agoSeeds are absolutely random and some of them can't be solved. I've had people complain about it but I consider it to be another aspect of the challenge of this game because there are cues you can notice that tell you if it's not possible to solve it. Yeah, you went the extra mile spinning up a local server :) If the trip you're taking is not a long one, you can just make sure to load the page while you still have reception. The game doesn't make any AJAX requests or load any resources after that and prevents the default 'pull-to-refresh' gesture so if you don't refresh the page accidentally, it'll stay available.
- 4ggr0 4y agoIt's a difficult challenge I must say. Played about a dozen games now, furthest I've gotten is 4280 points. Have you ever cleared a full seed? Yeah I looked at the files to see if you make any external requests. I guess I just found it entertaining that there's a web-game running locally on my phone :)
- jamilton 4y agoWow, that's funny, that's my high score too. I guess there's a limited amount of possibilities, so it's probably not that unlikely. Seed was 5209605, if anyone wants to try it.
- 4ggr0 4y agoFinally got it! Seed is 5905480. Tried your seed but wasn't able to clear it :)
- bussyfumes 4y agoYeah, I've cleared it many times. Sometimes no matter how skilled you are luck is not on your side :) Maybe the game could benefit from a mode that verifies if a seed is solvable but I haven't gotten past it being just an idea.
- hutzlibu 4y agoIt definitely would benefit from that, people like to have success. (And know who they can blame in case of failure) The easiest solution is probably brute force, have it try all the potential moves and see if it solves the game and if it does, make it a valid seed. Can be pregenerated, but should be doable in real time, also from a smartphone. Also, I think I was just blocked from my first clearing, because I could not access all blocks. Rotating the view and angle would be quite nice, but depending on your implementation, not trivial. Maybe I implement it with babylonjs or threejs these days, it is a fun game.
- bussyfumes 4y agoThank you for your feedback! Personally I am not sure if I like winning more than just combining the cubes together and moving onto the next seed if it can't solve the current one :) Pre-generating seeds is a valid solution but since I don't want the game to make any network requests I don't think it would work for me. Brute forcing it makes me worried if it'd drain the battery. I think I would rather add an opt-in (like a checkbox) option to make the game check fields for certain patterns that tell if a seed can't be solved and keep generating until there's a seed that passes that check. I think that way the game would still give you the occasional seed that can't be solved but statistically your chances would go up. Regarding rotating the view, that would make it a different game and I'd like to keep it as it is. However, that sounds like it could be fun so please send me a link if you end up creating such a version! :)
- hutzlibu 4y agoNow I am interested to give it a try, because I really don't think brute forcing the solution would drain the battery. Likely it would be neglectible, compared to the power needed by the rendering. Because there is a finite and small amount of legal steps, so it should not need too many iterations. That is of course, if you only brute force the raw game logic. Simulating the steps with the UI would definitely drain the battery ;) And yeah, if I get around to redo it in true 3D, I send you a link. I think if done right, it provides the same experience, just a bit more overview.
- morley 4y ago> Mobile games are filled with ads and in-app purchases and I never found a simple game I could play and enjoy while waiting for public transport. I bought Threes for $3 in 2014, and I still play it for hours each day -- on the subway, while waiting at restaurants, while watching TV, wherever. A lot of people play 2048 because it's free, but it's not nearly as polished.
- 4ggr0 4y agoTried Threes yesterday. Realy cute game but for some reason these kinds of games don't really hook me(Threes and 2048). But thanks for the suggestion!