Hacker News new | ask | show | jobs
by llagerlof 1340 days ago
I liked it. Thank you.

These are my 2 cents:

- The starting and ending / could be part of the mask, so the user don't need to type it.

- Some rules are not immediately clear. Eg. "The WORLD IS GOOD", should be /WORLD IS GOOD/ or /(WORLD|IS|GOOD)/ ? Or both?

- Add difficult levels. Maybe more time on easy mode.

- It's a nice learning environment. Let the user try to solve the puzzle when the time ends, just don't let him pass to the next level. Or maybe let him pass, but reset the score.

2 comments

I had fun with this but I _really_ wanted a learning mode. I was more interested in solving the puzzle of the regex than maxing out my score. Maybe make a version where you can get maximum points for a period of time then the possible points starts to go down. You can still continue after it hits 0, you just won't get any points
I think you need the trailing slash so you can add the global flag?
You are right! I thought the game doesn't support flags. Maybe just the starting / could be part of the mask.