Show HN: RegEx Face Off – Beat your friends with regular expressions
11–20 of 41 posts
Re: Show HN: RegEx Face Off – Beat your friends with regular expressions
#12It was hard thinking up patterns, so if you have ideas, please let me know.
Re: Show HN: RegEx Face Off – Beat your friends with regular expressions
#13Sorry, this will be a negative review. This is easily the most frustrating game I've ever played. I can't test parenthesis because it tells me my time 'ran out' with 45 seconds on the clock. I could barely type 4 or 5 characters. Edit: There are also XSS issues with the player name, you can execute Javascript in the other player's window. That's not good. I confirmed this since an image I scripted to load via HTML (…
Re: Show HN: RegEx Face Off – Beat your friends with regular expressions
#14Sorry, this will be a negative review. This is easily the most frustrating game I've ever played. I can't test parenthesis because it tells me my time 'ran out' with 45 seconds on the clock. I could barely type 4 or 5 characters. Edit: There are also XSS issues with the player name, you can execute Javascript in the other player's window. That's not good. I confirmed this since an image I scripted to load via HTML (…
The Rickroll should be fixed.
Re: Show HN: RegEx Face Off – Beat your friends with regular expressions
#15Re: Show HN: RegEx Face Off – Beat your friends with regular expressions
#16Re: Show HN: RegEx Face Off – Beat your friends with regular expressions
#17Sorry, this will be a negative review. This is easily the most frustrating game I've ever played. I can't test parenthesis because it tells me my time 'ran out' with 45 seconds on the clock. I could barely type 4 or 5 characters. Edit: There are also XSS issues with the player name, you can execute Javascript in the other player's window. That's not good. I confirmed this since an image I scripted to load via HTML (…
The Rickroll should be fixed.
|Re: Show HN: RegEx Face Off – Beat your friends with regular expressions
#18My strategy of "capture the last two characters of each input in the accept group followed by $" hasn't failed yet, and is quick to input and requires no thought. Though I wouldn't say I'm practicing any practical RegEx skills doing so. :P
I'm not sure if there is a length limit, but I'm fairly sure I could come up with a vim macro/regex that would allow me to copy the match words and make a (list|like|so) within 45 seconds.
Give the time limit, it would be more fun to automatically let your strategy compete. (maybe with a weight of length vs correctness) Write a function that, given two arrays of words, return the best regex.
Re: Show HN: RegEx Face Off – Beat your friends with regular expressions
#19Re: Show HN: RegEx Face Off – Beat your friends with regular expressions
#20This is a little side project I made to learn about Web sockets. Each question consists of a "match" pattern and a "skip" pattern, and then looks up words on wordsapi.com to match those patterns when the question is generated. It was hard thinking up patterns, so if you have ideas, please let me know.
Alternatively, use a very limited alphabet (like 'a', 'b', 'c'), and have longer patterns like 'aabbaaabbbc'.