forked from GitHub/gf-core
use "-" and ";" instead of "_" and "\n" in NQueens
This commit is contained in:
@@ -4,7 +4,7 @@ lincat Matrix, Vec = Str ;
|
||||
ListNat, Sat = {} ;
|
||||
|
||||
lin nilV _ _ = "" ;
|
||||
consV _ j k _ _ v = j ++ "X" ++ k ++ "\n" ++ v ;
|
||||
consV _ j k _ _ v = j ++ "X" ++ k ++ ";" ++ v ;
|
||||
|
||||
matrix _ v = v ;
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ concrete NatAscii of Nat = {
|
||||
lincat Nat = Str ;
|
||||
|
||||
lin zero = "" ;
|
||||
succ n = "_" ++ n ;
|
||||
succ n = "-" ++ n ;
|
||||
|
||||
lincat NE = {} ;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user