Add the ability to ctrl-click to lock a node if it's the only possibility
left.
This commit is contained in:
parent
bb658c53ad
commit
5b191deaf4
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2002/12/15 15:45:03 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 2002/12/15 23:54:39 espie Exp $
|
||||
|
||||
COMMENT= "finish-the-cycle logic puzzle"
|
||||
CATEGORIES= games
|
||||
|
||||
MAINTAINER= Marc Espie <espie@openbsd.org>
|
||||
|
||||
DISTNAME= circuit-0.1.2
|
||||
DISTNAME= circuit-0.1.3
|
||||
MASTER_SITES= ftp://quatramaran.ens.fr/pub/cigaes/circuit/
|
||||
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (circuit-0.1.2.tar.gz) = 871b3540620fef7bd4376adcec78f39e
|
||||
RMD160 (circuit-0.1.2.tar.gz) = 815f4bb3455e5fa504cb83ad7f23737156f11811
|
||||
SHA1 (circuit-0.1.2.tar.gz) = 250f5a37cebbd1bc3e16ebba81e0e42b28dff3e7
|
||||
MD5 (circuit-0.1.3.tar.gz) = 7868f138c45890409d7ead3b5a5553cd
|
||||
RMD160 (circuit-0.1.3.tar.gz) = 2690390a2f802609938133239ab52e244d22c804
|
||||
SHA1 (circuit-0.1.3.tar.gz) = 46c7a0fca02223f8d5dd49f6cd905fb161422d8f
|
||||
|
13
games/circuit/patches/patch-circuit_c
Normal file
13
games/circuit/patches/patch-circuit_c
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-circuit_c,v 1.1 2002/12/15 23:54:39 espie Exp $
|
||||
--- circuit.c.orig Mon Dec 16 00:34:59 2002
|
||||
+++ circuit.c Mon Dec 16 00:42:54 2002
|
||||
@@ -326,7 +326,8 @@ only_good_according_to_locked_nbours(int
|
||||
ng = nb = 0;
|
||||
for(j = 0; j < nbours; j++) {
|
||||
n = board[c].nbour[j];
|
||||
- if(n != -1 && !board[n].locked)
|
||||
+ if(n != -1 && !board[n].locked && board[n].links != 0 &&
|
||||
+ board[n].links != (1 << nbours)-1)
|
||||
continue;
|
||||
if(good_link_value(c, j, r))
|
||||
ng++;
|
Loading…
Reference in New Issue
Block a user