the NQueens algorithm written in GF

This commit is contained in:
krasimir
2010-03-21 19:01:57 +00:00
parent 68840a3d6a
commit f4574a4cfa
4 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
concrete NQueensAscii of NQueens = NatAscii ** {
lincat Matrix, Vec = Str ;
Constr, Sat = {} ;
lin nilV _ _ = "" ;
consV _ _ f _ l _ v = f ++ "X" ++ l ++ "\n" ++ v ;
matrix _ v = v ;
}