Live data from Hacker News

Show HN: Unflip – a puzzle game about XOR patterns of squares

unflipgame.com

41–50 of 57 posts

Re: Show HN: Unflip – a puzzle game about XOR patterns of squares

#41

Really nice concept and super clean execution. Wish I’d had 1/2 this restraint on adding complexity when I made my own tile-based puzzle game[0] [0] https://www.hidden-mirrors.com

I like your puzzle game. Yeah, it did take me a bit to understand initially. I wonder, do you generate the daily levels automatically?

Re: Show HN: Unflip – a puzzle game about XOR patterns of squares

#42
post #30

i have a strong quibble about calling this XOR. XOR takes two arguments and one of the arguments here is implicit. The game inverts the square colors, which XORing with "1" will do, but it's not defined whether white or black is 1, it just inverts white and black.

The way I thought of it was 0=white 1=black. I used the term XOR when posting on hacker news because I thought people here might have an intuition about the kind of patterns it could form in 2D

Re: Show HN: Unflip – a puzzle game about XOR patterns of squares

#43

Really nice concept and super clean execution. Wish I’d had 1/2 this restraint on adding complexity when I made my own tile-based puzzle game[0] [0] https://www.hidden-mirrors.com

I like your puzzle game. Yeah, it did take me a bit to understand initially. I wonder, do you generate the daily levels automatically?

Glad you enjoyed it. Yeah, the daily levels are algorithmic with an RNG seeded with the date.

Took ages to find an algorithm that produces mostly interesting puzzles in the goldilocks difficulty zone.

Re: Show HN: Unflip – a puzzle game about XOR patterns of squares

#44

If you're into retrocomputing, the C64 game Quadromania (1987) has similar gameplay: https://archive.org/details/Quadromania_1987_CP_Verlag_de-en...

Interesting. It is very similar.

It took me a while to get past the instruction screen (I needed to press space, then "E" for english, then press escape) Now I can't seem to figure out the controls for the actual game.

Re: Show HN: Unflip – a puzzle game about XOR patterns of squares

#45

If anyone wants an extra challenge: think, how would you write a solver for this?

Tangentially related, have you heard of Bombe? It's a hexagonal minesweeper where you write rules to solve every possible scenario. It even checks your rules' satisfiability via SMT.

That's pretty cool. It reminds me of writing peep-hole patterns for an optimizing compiler.

Re: Show HN: Unflip – a puzzle game about XOR patterns of squares

#47
post #37

Great game, thanks for sharing. Would love to have a daily level.

Yeah, it's my plan to implement daily levels, as well as weekly levels.

I was thinking of making weekly levels be very big (like 12x12) where I don't know what the par is myself, and have it be a challenge to see who in the community can figure out a way to get the lowest number of moves.

And daily levels would probably be more similar to the regular levels.

Re: Show HN: Unflip – a puzzle game about XOR patterns of squares

#48

If anyone wants an extra challenge: think, how would you write a solver for this?

(If I'm trying not to spoil anything, do I even post? Maybe I can encourage someone else to have fun giving it more thought.) At least one elegant and efficient answer is within reach for many. The person who first pointed it out to me didn't need to know the relevant branch of mathematics to do so; he intuited the shape of it without the formal terminology. I'll be particularly curious to hear the pattern(s) in how…

So what is your solution, I'm curious.

Regarding the number of solvable boards. It is actually possible to calculate the exact number. The solvable boards correspond to the image of the matrix of moves. It will be a vector (sub)space over Z/2Z, so it will always be a power of 2, and its size will be determined by the rank of the matrix. For example for 5x5, there are 2^22 valid boards.

And regarding the number of solutions to a given board, (assuming you ignore the order of moves, because it doesn't matter) it will always be the exact same number, and in the case of 5x5 it will be 2^8. 8 is the nullity of the matrix of moves.

Note that 22+8=30, which is 44+33+22+11, which is the number of possible moves.

Re: Show HN: Unflip – a puzzle game about XOR patterns of squares

#49

The game is quite fun. But it seems the difficulty ramp quite late? It's not very difficult to get the answer with least step by solve the side first until about last 20 levels. Also, the game does give you a hint about how to bruteforce the level if you only have one square left. Good job.

Good point. I definitely need to work on the progression.
Post reply on HN