Skip to content
Pre-release
Pre-release

@lvh lvh released this Nov 30, 2019

Just for Linux amd64 right now because it's the weekend and I can't be bothered to set up CI today :-)

Usage: ./regex-crossword builtin SETNAME INDEX. SETNAME is the internal name of the set: try tutorial, beginner, cities... INDEX is the index in the set as an integer, or * if you want to solve all of them. Example:

./regex-crossword builtin cities '*'
Solving {:id 449f4c0d-8894-46bf-9311-15d07b7d6c7d, :name Pisco Sour, :patterns-x [[(MA|LM) [LAME]*] [[^MESH]+ [^LES]+]], :patterns-y [[[LINE]+ [ISLE]+] [[LAM]+ [MALE]+]]} from set cities
Solution # 0
L I
M A


Solving {:id 8ce3aedf-9f35-4096-8437-17d29593dbd5, :name Roman Latin, :patterns-x [[[IDEAL\s]+ (DI|FI|L|O)+] [[OLD]I[PUS] [IOU\s]+] [[MNOPQR]+ (.)\1(M|N)]], :patterns-y [[.*[KNIGHT] [^GIP]+[^MITE]] [(IN|SI|D|E)+ [DIMN]+[NO]] [[IMUST]+ [^SNAP\s\-]+]]} from set cities
Solving {:id 4588b3cc-9898-46e6-a9fc-3bc9599220c6, :name Big and hot, :patterns-x [[[NAYE]* [YEN]+] [(EO|N\s) [ETPHONE\s]+] [[WRONG]* [^GONE\s]+] [(K|R|I|M|\s)+ [\sANKT]+]], :patterns-y [[(W\s|NE|PS)* [END\sWITH]+] [[YOU]{2}[ARK]+ .+R.*]]} from set cities
Solution # 0
N E W  
Y O R K


Solving {:id 2b6c38e4-f11b-49e9-857a-1a9c782c38b6, :name Alpha World City, :patterns-x [[(KA|LK)[MNO] [KRAMP]+] [.+(AL|P) U[PLAIN\s]{2}] [[^PIM\s]+ [ALURE]+] [[LP].*[PR] [RULE\s]+]], :patterns-y [[[ALK\sU]+(P|AL|E)+ [LUKE]{2}[LAKE\s]+] [[ABC]\s(LU|LP)]* .*[PUL]+] [(RU|MP|UR|S)+ [RUMPUS]*]]} from set cities
Solution # 0
K U A L
A   L U
M P U R


Solving {:id dab395e3-378a-4e57-bb33-557c33fd00d5, :name Home, :patterns-x [[[HELP\s]+ [^SLIC]+\w] [[^\sPONG]+N [OCEAN\s]+] [[SONG]+\s [^SPIES]+]], :patterns-y [[[^SEAP]+ [\sCOPE]+] [[\sPIN]E[NET] [^HI\s]+] [[^ONE\s]+ [\sHAG]+] [[END\s]+ [^SODA]+]]} from set cities
Solution # 0
  C O
P E N
H A G
E N  


Solution # 1
  C O
P E N
H   G
E N  


Solution # 2
    O
P E N
H A G
E N  


Solution # 3
    O
P E N
H   G
E N  


Solution # 4
  C O
  E N
H A G
E N  


Solution # 5
  C O
  E N
H   G
E N  


Solution # 6
    O
  E N
H A G
E N  


Solution # 7
    O
  E N
H   G
E N  


Solution # 8
  C O
P E N
  A G
E N  


Solution # 9
  C O
P E N
    G
E N  

This will download the current example set from the Regex Crossword website, since I didn't want to pack the examples in the binary.

Assets 3
You can’t perform that action at this time.