▲ 21 r/compsci+1 crossposts

[Request] What is the complexity in solving a grid-based least optimal path puzzle?

I created a puzzle game on reddit as part of the reddit "Games with a Hook" hackathon. The objective of the game is to force the longest path possible by placing blocks on a grid. There are other fixed blocks, waypoints, and teleports that extend the path even longer.

Is there a deterministic solution and how hard would it be to find?

The "Bot" I built for it basically does a recursive block placement along the current path, continues if it makes it longer, returns if it doesn't, then quits after set iteration count because I need it quickly. A "breadth first" approach. It does OK given that it doesn't prioritize teleports or placing blocks more strategically.

P.S. I am intentionally not posting the link because I genuinely want an answer and don't want to be accused of self promotion.

EDIT: Another aspect of the game is that the board size changes based on difficulty. The max Width/Height is 25x30, so 750 empty tiles worst case, however there are also randomly occupied tiles such as fixed blocks, waypoints, teleports, and the start/finish tiles that cannot be built on.

So lets say 650 empty tiles on the hardest difficulty.

I think a simple start -> finish on a 10x10 board is easily solvable, but I believe the more complex boards are NP-Hard and there is no solution outside brute force which would take a lifetime. I am no mathematician, which is why I am asking the people smarter than me.

u/brahose — 1 day ago

Release Notes v0.1.4: Share Your Runs, Build Your Own Maps, and a Smarter Tutorial

Big update, detourists! I have been hard at work implementing new features based off your feedback. Please keep the feedback coming!

🎬 Share your solution as a GIF

Topped the leaderboard? Now you can show it off. Click the "💬 Share result" button to post a comment with your GIF attached.

  • Your solution GIF hides behind a spoiler link ("▶ Watch my solution"), so nobody gets the answer ruined by scrolling past it. -
  • Want the file? Hit "💾 Save GIF" and post it anywhere.

✏️ Build your own puzzles — the map editor is here

The custom challenge builder just leveled up from "roll the dice" to "full editor." Generate a board, then hit ✎ EDIT MAP and take over:

  • Place and remove blocks, waypoints, teleport pairs, and start/finish tiles
  • Tune the block budget
  • Live validation tells you the moment your board becomes unsolvable — and the par updates as you build

When it's ready, post it as a real challenge and watch the leaderboard fill up. Diabolical map ideas welcome.

🏆 See the solutions of other Detourists (after the puzzle expires)

When a puzzle's time is up, the final results comment now has a ▶ Watch link next to each podium finisher. Tap the link to jump straight into a replay of their exact solution. Study the champions. Steal their tricks.

🔑 Login now required

To keep leaderboards, streaks, and sharing fair (and your stats safe), Detour now requires a Reddit login to play. Tap the splash and you'll be prompted .

🌀 Polish from the last update

  • Teleports go dark when once the runner has gone through them? The pair dims and freezes so you can read your route at a glance.
  • Smarter tutorial — guided highlights now walk you through each lesson tile-by-tile, with a tip for every step and a little celebration when you nail the goal.
  • New achievement: "🎓 Student Driver" for finishing the tutorial.
    • Random side note - I can no longer say "New Achievement" without thinking of Dungeon Crawler Carl. Any other DCC fans in this sub?

Found a bug? Got a feature idea? Drop it in the comments. Half of this update came straight from your feedback. 🏁

reddit.com
u/brahose — 22 days ago
▲ 8 r/Devvit

Feature Request: Deep Linking

My game (/r/detour_game) has a feature where after the daily puzzle is complete, you can view other peoples solutions.

The app also posts the leaderboard in comments after each day. I would love to have the leaderboard user link directly to the replay of their solution within the game. Instead, they have to open the game, click the leaderboard, then click the user.

I could also see this being useful for directly linking to a UGC/map builder scene or any other content that may be worth deep linking into.

reddit.com
u/brahose — 29 days ago
▲ 5 r/detour_game+2 crossposts

I'm thinking about giving the UI a facelift. Which design do you like better? Anything you would adjust?

Looking for some feedback on these designs. There are two designs across 2 different scenes.

u/brahose — 29 days ago

We hit 100 weekly visitors!

I’m very grateful for everyone who has played the game, and especially grateful to all those who have provided feedback.

Always interested to know what can be improved.

Question - are the hard and expert puzzles too big?

reddit.com
u/brahose — 1 month ago
▲ 1 r/detour_game+1 crossposts

We are growing, and I am looking for feedback

Hello Detourers - We have grown to 36 weekly visitors! A-MAZE-ING!

I want to thank everyone who has played the game and joined the sub. I would love to hear your feedback. Please let me know in the comments what you think would make this game better or the community in general.

reddit.com
u/brahose — 1 month ago