GithubHelp home page GithubHelp logo

regex-crossword's Introduction

regex-crossword

Implementation of a RegExp crossword.

View the current version at http://jimbly.github.io/regex-crossword/

Original puzzle written by Dan Gulotta for the 2013 MIT Mystery Hunt: https://web.mit.edu/puzzle/www/2013/coinheist.com/rubik/a_regular_crossword/ popularized through http://www.i-programmer.info/news/144-graphics-and-games/5450-can-you-do-the-regular-expression-crossword.html

TODO List

  • Auto-check against known solution
  • Allow choosing between multiple crosswords puzzles
  • Allow users to save their own puzzles and load other people's
  • Track time spent solving puzzle
  • Rotate buttons
  • Undo/redo

regex-crossword's People

Contributors

afuous avatar andersk avatar boothby avatar cowboy avatar emilyploszaj avatar hirachan avatar jacktose avatar jimbly avatar kellen avatar piggypigcute avatar thecycoone avatar tyilo avatar yothenberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

regex-crossword's Issues

just-capture-group runs should be one or more

Hi, this is neat, having fun at lunch trying to solve it.

Should runs that are just a single capture group, such as the one in the top row (E|RC|NM)* be (E|RC|NM)+? Or notably the .* should be .+?

Greedy matching breaks a clue

For (...?)\1* the pattern matching is greedy, which will always accept strings of the form ABCABCABCABC, but fail to match strings like ABABABABABAB

This is because for ? it tries to match maximum number of letters possible (ABA). And then the rest of regex doesn't work anymore. Instead. ? should probably iterate through both options and return True if either is True.

Incorrect clue? [SPOILERS]

I just tried this puzzle, and the .*(.)C\1X\1.* clue seems to be backwards. I think it should be .*(.)X\1C\1.*.

This is as far as I've gotten, but there's no way I can see to reconcile the two red fields.

If I swap them by setting board_data.z[8] = '.*(.)X\\1C\\1.*'; I can solve the puzzle:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.