Permalink
Browse files

predfinalni verze

  • Loading branch information...
1 parent 3f19837 commit cb0121afa39d1b267f6afbdc19a228a05dea7d10 Srb Pavel committed Apr 30, 2010
Showing with 4 additions and 11 deletions.
  1. +4 −3 nurikabe.pl
  2. +0 −8 test/test77
View
@@ -85,8 +85,8 @@
level2Coors(Index,C) :-
cols(W),
- X is ((Index-1) // W)+1,
- Y is ((Index-1) mod W)+1,
+ Y is ((Index-1) // W)+1,
+ X is ((Index-1) mod W)+1,
[X,Y] = C.
coors2Level([X,Y],C) :-
@@ -184,7 +184,8 @@
%zde se provadi kontrola jestli je plocha validni
combi(0) :-
-% findall((G,H),tmp_black(G,H),Pole),write('black '),write(Pole), nl
+% printDesk,
+% findall((G,H),isBlack(G,H),Pole),write('black '),write(Pole), nl,
% ,findall((R,S),tmp_white(R,S),Pole2),write('white '),write(Pole2),nl
% ,
( %if reseni je ok
View
@@ -1,8 +0,0 @@
-7 7
-1 0 0 0 0 0 0
-0 0 1 0 0 0 0
-0 0 0 0 3 0 0
-0 0 0 0 0 0 0
-5 0 0 2 0 2 0
-0 0 0 0 0 0 0
-4 0 0 0 2 0 0

0 comments on commit cb0121a

Please sign in to comment.