regex_blaster.py [1] is a game for honing your regular expressions skill.
Match the red's, but not the green's. Your score depends on the regex, yes, you can literally type in, but that gets you no points, from README:
No points for ordinary characters (since by themselves they are not yet a regular expression).
One point for each operator ., |, ?, ^, $.
Two points for each character set with [...], each group with (...), and each use of Kleene star * (and +).
Five points for each back-reference (\1, etc.) and each case of repetition, as {2} or {2, 5}.
Ten points for each look-ahead and look-behind.
However, the score really means nothing very much, as you can see I could cheat with expression like `A?A?A?A?A?A?A?A?A?A?A?` (0:20).
By the way, I like the color fading effects (0:05), also the leftover shadows from previous inputs (0:28). Look close to the input area, you can see grey text.
You have 22 lives on red's and 22 on green's, once all used, you are done.
You need a terminal size of 80x30+, it has two command-line options:
-l|--length n: length of base-strings
-r|--repeat n: repeat a given attack string this number of times
This game was born on 2014-03-28.
$$$
git-6a5fcda8b1928f8a11431e3455e24b76664edab8 (2014-06-13)
In Python 2 and 3 with ncurses
By David Branner
License unspecified
[1]: https://github.com/brannerchinese/reg...