Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

predfinalni verze

  • Loading branch information...
commit cb0121afa39d1b267f6afbdc19a228a05dea7d10 1 parent 3f19837
Srb Pavel authored
Showing with 4 additions and 11 deletions.
  1. +4 −3 nurikabe.pl
  2. +0 −8 test/test77
View
7 nurikabe.pl
@@ -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
8 test/test77
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.