RedditPP Mascot

RedditPP

r/vibecoding • … • u/davevr

Gemini is getting pretty good at one-shot experiences!

Ever since the chat bots added canvas that can run HTML/js single-page apps, I've been using them to do little experiments or small utility projects. But lately Gemini has been knocking it out of the park. I wanted make a little app to teach my kids how to solve futoshiki puzzles. Not solving them for them, but showing them the rules and letting them apply them one by one. I gave a prompt to Gemini and it made the entire thing fully functional in one shot. Amazing performance!

Here was the prompt (after turning on Canvas)

===

I am making a Futoshiki helper app. I want the user to be able to apply solving rules to the board one by one, so that they can learn to solve the puzzle logically, with no trial and error. I am trying to get the list of all of the rules. For example, with a 6x6 grid, we can have:

1) by default, every cell has candidates \[123456\].

2) if a cell has an explicit value (a single candidate), then eliminate that from the candidates of all cells in the same row or column.

3a) if cell A is < cell B, eliminate any candidate from cell A that is larger than the largest candidate in cell B - 1.

3b) if cell A is < cell B, eliminate any candidate from cell B that is smaller than the smallest candidate in cell A + 1.

4) if a row or column contains X candidates that only appear in X cells, we know that those cells can only contain those X numbers. We can eliminate any other numbers as candidates in those cells, and we can eliminate those numbers as candidates from the other cells in the same row or column.

There are probably other rules as well that you could do some research on.

Then make a simple one-page web app that lets the user set up a 6x6 puzzle with initial values and inequalities, and then be able to select rules to apply and see the before/after of that rule.

===

![img](zfws33q6jt6g1)

And here is the result:

— 0