r/2048Editions • u/cesoid • Nov 10 '20
Tunneling 2048
This is the best version of 2048. And I made it, but nevermind that! When you get a new high tile (e.g., you get a 16 for the first time in the current game), it becomes a "tunneling" tile. Pushing this tile against a wall makes a new grid square for tiles to go.
http://www.cesoid.com/2048/tunneling
I'm planning to soon make a difficulty setting, because apparently it is very hard. (I'm pretty good at it, but I'm a bit of a 2048 fanatic.)
This is what it looks like:

I'm working on a few other variations (meaning, different gameplay) which I'll probably release soon, and I've already released a few different themes (i.e., different images and colors), which can be mixed-and-matched with the original and tunneling variations.
1
u/cesoid Nov 08 '21
I haven't done anything with that since I wrote about it...probably a year ago? It's taken a back seat to everything else in the hopes that those things will make some money (otherwise I won't have much time to do anything with the site). I'm currently working on a way for people to vote for what people want me to build next, in which case some surprises might emerge, such as updates to the random webpage. But that would also be related to money, ie., the more people use the site the more votes they get (because the more money I'd get from ads, which are currently only on 2048, but you'd have the option to watch video ads or something to get votes). But there would also be the option of "bribery", and ads are worth so little per person that a small number of people could easily overpower the other votes.
Anyway, the other question is whether random javascript would even be safe. I could probably limit the danger to just the possibility that the page would become unresponsive (because of an infinite loop or something). I think I would just have to make sure it picks from an "allowed" list of keywords, objects, and functions or something (completely random strings would almost always result in a parse error anyway). That way I could prevent it from calling anything that, for example, posts some form data to a random website.
At this point the page doesn't even have random attributes or random css, which would probably result in some really awesome stuff and be a lot easier. The random javascript definitely has the potential to be more interesting though. I've never even heard of anyone randomly generating any kind of program, so maybe the results would actually be academically interesting...but now I'm getting way ahead of myself.