Thanks
I'll check them out. I'm having to implement Latin Square (or removing Nonet constraints) at the same time, as most of the puzzles don't have Nonets. At some point I'll also need to look at something other than 9x9 base grid, as many seem to be smaller grids.
In my current working prototype, the definition starts with a blank grid and the constraints are added by clicking on the cell border which then cycles through the greater than/less than/no constraints. I'm thinking of also having menu/keyboard shortcut to define the boundaries between cells that have been selected.
I'm also looking at what the text string representation should be for facilitating import/export. It doesn't look like JS supports anything other than its own internal format, and things like Cross-A are very verbose. I'm thinking of a 243 character string with each of the 81 cells represented by 3 characters: NRB - with N being a defined digit (or .) R being the right cell constraint (< > or ? .) and B being the bottom cell constraint (^ v or ? .) Although the "R" is redundant for column 9 and "B" is redundant for row 9, it would make it a lot simpler to keep them in the string. So a puzzle might look like this
Code:
..v..v.....^...8.V........V
....>.....<..<.....>....8..
..........................^
........v....>^..v....<v...
.....v....>.....>.....>....
.^.........v.<v.<..........
.<...^..^..^.>............v
................<...^......
2.....8..9...>.......5<....
or
Code:
.?v.?v.??.?^.??8?V.??.??.?V
.??.>?.??.<?.<?.??.>?.??8??
.??.??.??.??.??.??.??.??.?^
.??.??.?v.??.>^.?v.??.<v.??
.??.?v.??.>?.??.>?.??.>?.??
.^?.??.??.?v.<v.<?.??.??.??
.<?.?^.?^.?^.>?.??.??.??.?v
.??.??.??.??.??.<?.?^.??.??
2??.??8??9??.>?.??.??5<?.??