390 points · by andrelaszlo · 5y ago · 151 comments
This might be fine for hard mode, but as someone who considers themselves a regexpert it's not very approachable as a first puzzle IMO.
A more gradual introduction to the format would be to give a few clues that give you confidence on specific characters, that then let you lock in some other characters in other hints, and so on.
For instance, replacing `.*H.*V.*G.*` with `.{3}H.*V.*G.*` would go a long way because you could confidently place an `H`. And say that intersected with `(DI|NS|TH|OM)*` on the `H`, you could then place a `T` from the second clue because of what you learned from the first clue.
It could just be that I'm missing something or not as good at regex as I thought, and please let me know if that's the case. Either way though, when I'm trying a new kind of puzzle I'd like to feel like I made some sort of progress after trying for 5-10 minutes, and here 2 chars does not feel like progress.
But since this is my first introduction to this kind of puzzle, I need some anchor points at the beginning so I feel like I have something to work off of.
I'm not even asking for a whole row, just an easier set of known chars at the start of the round so I have a hint at which of the 39 constraints I should start with.
To be honest I'm not even saying this puzzle should change so much as I am looking for a different puzzle to dip my toes.
I don't have any interest in starting the puzzle if I don't feel like I can put a foot down somewhere. It's like trying your first Minesweeper game, making two random clicks, and getting two `7`s. Where do you go from there? Or learning Sudoku from the hardest difficulty level, without having built up a library of patterns from the easier difficulties.
I had the same experience when I tried it yesterday. There doesn't seem to be any good "starting point", like there is on a traditional crossword puzzle or sudoku.
I think from a game design perspective it is really interesting though: Like sudoku, this kind of puzzle gives you a wide range of options to archive different player experiences and difficulty levels: You can make easy levels by mostly using constant-width regexes and non-conditional letters and you can slowly increase the difficulty level by making regexes less constrained and more ambiguous. A designer could even craft specific "paths" through the puzzle by combining easy and hard regexes.
Finally, a designer could gradually introduce more complex regex features (or other patterns, like multiple constraints) over successive leves.
I agree it definitely feels imposing when you first look at it, but stick with it. Look for spaces that have a very small set of possibilities, and then try to map out what neighboring spaces could have for each possibility. If you really feel stuck, take a screenshot and mark it up.
(XHH|[^XH])*
is equivalent to just .*
EDIT: It looks like I read the regex wrong. I guess I need to do the puzzle after all! [^C]*[^R]*
LOOKS unsimplified, but it actually means that if the string contains an R, the preceding characters CANNOT be C.Doesn't it really just mean a string can't contain a C followed by an R?
It is "If any of X or H appear they appear in a sequence exactly matching XHH".
(I guess I could PR on github when I get some time later today)
https://web.mit.edu/puzzle/www/2013/coinheist.com/rubik/a_re...
The ones on https://regexcrossword.com/ are nice but this is the original, for me at least!
https://play.google.com/store/apps/details?id=de.chagemann.r...
I solved this in about 1.5 hours by starting at the top left, entering any string that satisfied at least one condition, then moving on to the next condition and “fixing up” any previous entries. I was fearful that I might arrive at a nearly correct solution that I would have to massively backtrack from, but it didn’t happen - I only needed a few short backtracks. I think the large number of constraints helps a lot.
https://news.ycombinator.com/item?id=26439598
for proper credit to the original author (and place of publication).
Thanks for posting the answers. I think I'm done working on it for now, but that one was really bothering me.
Thanks though. I tried again on my laptop and got it - was a bit easier with a larger display than on my phone.
I think I saw at least 3 places where that technique could be used, probably more.
There isn't a technical reason why the traditional crossword format can't have clues in the shape of regex right?
As far as I can tell, the puzzle is fully constrained.
From the start, the bottom-left cell as well as the right column can be solved just from the starting hints, and then you can derive the top-left cell per the backreference.
In particular, you can reframe the right column's hint as (AB|OO|OR), and only one of those satisfies the bottom row's hint.
They just went the extra mile to make an special puzzle.
(and on top of that, we're doing a full match.)
Edit: Fix HN oddity
Tip: Ctrl-Z is your friend ;)
Any ideas how it was invented?
See this comment for the link to the original, including the author's name and the puzzle in context with its official solution:
https://news.ycombinator.com/item?id=26439598
(I wish that other comment would get upvoted to the top -- this was written by an identifiable person for a specific identifiable puzzle event, so it's not like mysterious anonymous Internet folklore or something.)
The final clue I had to complete was that tricky .*(.)(.)(.)(.)\4\3\2\1.*
Agreed, I definitely found myself doing that.
> The final clue I had to complete was that tricky .(.)(.)(.)(.)\4\3\2\1.
Interesting...I think I had the main guts of that one worked out when I was about 1/3 of the way through, but admittedly I did take a screenshot and mark it up in order to keep track of the various possibilities. It was (...?)\1* that tripped me up because I had an overly broad interpretation of its mechanics.
I wonder if it would be possible to record a bunch of 0-100% runs and then to make some sort of visualization to demonstrate different approaches...
Reload if you don't see the regexes turn bold when you click in a hex!
Really neat puzzle though!
Personally I'd even pay good money for a series of these style of puzzles.
Aren't crosswords supposed to spell out a word? This feels like random characters. Unless i'm supposed to rotate it or something?
It took me close to three hours to solve this, hahaha
Would be nice if they had a couple hand mande puzzles instead of random ones.
But this puzzle doesn't recognize any of those as valid.