Minlex Library (9x9)

Programs which generate, solve, and analyze Sudoku puzzles

Re: Minlex Library (9x9)

Postby Serg » Tue Feb 02, 2021 10:16 am

Hi, Denis!
Problems concerning GridChecker usage should be discussed in the thread GridChecker, an exhaustive puzzle enumerator.

Serg
Serg
2018 Supporter
 
Posts: 890
Joined: 01 June 2010
Location: Russia

Re: Minlex Library (9x9)

Postby coloin » Tue Feb 02, 2021 10:22 am

denis_berthier wrote:ok, but then what software does gremlin use to do the check?

g.r.emlin is gsf's henchbot !!

page 4 of gridchecker thread will assist you ...
coloin
 
Posts: 2494
Joined: 05 May 2005
Location: Devon

Re: Minlex Library (9x9)

Postby Mathimagics » Wed Feb 03, 2021 4:22 am

Ok, there seem to be complications preventing GridChecker from being easily compiled on MacOS ...

A solution for Denis:

  • the zip file above now includes a stand-alone tool PatMinlex.cpp. This is an extraction of pattern-minlexing code from Mladen's "Sudoku Minlexing Tool"
  • this should compile as is with gcc, there is nothing exotic in the code
  • the program will accept normal puzzle format, also dot-X format (as shown beow). Output is dot-X format
Code: Select all
d:\SudokuCF> type TestP
.X.XX......X.....X.XX....X.X......X.....XX....X.XX............X...X.XX.X..X.X...X

d:\SudokuCF> gcc -O3 -o PatMinlex.exe PatMinlex.cpp

d:\SudokuCF> PatMinlex < TestP.txt
........X.....XXXX..X.X........XX.X...X.......X.XX.....X.X....XX.......XXX.X...X.

User avatar
Mathimagics
2017 Supporter
 
Posts: 1926
Joined: 27 May 2015
Location: Canberra

Re: Minlex Library (9x9)

Postby denis_berthier » Wed Feb 03, 2021 5:34 am

Mathimagics wrote:Ok, there seem to be complications preventing GridChecker from being easily compiled on MacOS ...
A solution for Denis:
  • the zip file above now includes a stand-alone tool PatMinlex.cpp. This is an extraction of pattern-minlexing code from Mladen's "Sudoku Minlexing Tool"
  • this should compile as is with gcc, there is nothing exotic in the code
  • the program will accept normal puzzle format, also dot-X format (as shown beow). Output is dot-X format
Code: Select all
d:\SudokuCF> type TestP
.X.XX......X.....X.XX....X.X......X.....XX....X.XX............X...X.XX.X..X.X...X
d:\SudokuCF> gcc -O3 -o PatMinlex.exe PatMinlex.cpp
d:\SudokuCF> PatMinlex < TestP.txt
........X.....XXXX..X.X........XX.X...X.......X.XX.....X.X....XX.......XXX.X...X.


Hi Mathimagics,
Many thanks.
It works exactly as you describe.
Now, I will be able to check if a puzzle I propose has already an iso pattern in the Patterns Game AND if a pattern is already known to have no minimal.
denis_berthier
2010 Supporter
 
Posts: 4208
Joined: 19 June 2007
Location: Paris

Previous

Return to Software