We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
; probably collapse add ; (sudoku_board 9 7 9 7 ) ; (sudoku_puzzle_state 1 1 5 )
(= (sudoku_quad_num $rowx $colx) (match &self ( sudoku_board $rowx $colx $quadn $nothing ) $quadn ) )
(= (get_quad_stateyz $quadn) (match &self ( sudoku_puzzle_state $row $colx $state ) ( (if (and (> $state 0) (== (sudoku_quad_num $row $colx) $quadn ) ) (cell_xstate $row $colx $state) (empty) ) ) ) )
The text was updated successfully, but these errors were encountered:
can you supply a small case to reproduce the bug?
(sudoku_board 9 7 9 7 ) (sudoku_puzzle_state 1 1 5 ) (= (sudoku_quad_num $rowx $colx) (match &self ( sudoku_board $rowx $colx $quadn $nothing ) $quadn ) ) (= (get_quad_stateyz $quadn) (match &self ( sudoku_puzzle_state $row $colx $state ) ( (if (and (> $state 0) (== (sudoku_quad_num $row $colx) $quadn ) ) (cell_xstate $row $colx $state) (empty)) ) ) ``` is missing `cell_xstate` and what would bre the query to try?
Sorry, something went wrong.
Im finding the code because i changed it since, i thought i added the whole file,
I have just tested it also, it works in hyperon but not in mettalog, this is the smallest example for that nested match sudoku_nest_match.zip
No branches or pull requests
; probably collapse add
; (sudoku_board 9 7 9 7 )
; (sudoku_puzzle_state 1 1 5 )
(= (sudoku_quad_num $rowx $colx)
(match &self ( sudoku_board $rowx $colx $quadn $nothing )
$quadn ) )
(= (get_quad_stateyz $quadn)
(match &self ( sudoku_puzzle_state $row $colx $state ) (
(if (and (> $state 0) (== (sudoku_quad_num $row $colx) $quadn ) )
(cell_xstate $row $colx $state)
(empty)
) ) )
)
The text was updated successfully, but these errors were encountered: