~mdw
/
sgt
/
puzzles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
329b3f0
)
Command-line solver was dividing up non-square puzzles the wrong way
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 27 Apr 2005 16:59:18 +0000
(16:59 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 27 Apr 2005 16:59:18 +0000
(16:59 +0000)
round.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5691
cda61777
-01e9-0310-a592-
d414129be87e
solo.c
patch
|
blob
|
blame
|
history
diff --git
a/solo.c
b/solo.c
index
1448c99
..
0f3400c
100644
(file)
--- a/
solo.c
+++ b/
solo.c
@@
-2054,18
+2054,18
@@
int main(int argc, char **argv)
c = 'a' + c-10;
printf("%c", c);
if (x+1 < p->c * p->r) {
- if ((x+1) % p->
c
)
+ if ((x+1) % p->
r
)
printf(" ");
else
printf(" | ");
}
}
printf("\n");
- if (y+1 < p->c * p->r && (y+1) % p->
r
== 0) {
+ if (y+1 < p->c * p->r && (y+1) % p->
c
== 0) {
for (x = 0; x < p->c * p->r; x++) {
printf("-");
if (x+1 < p->c * p->r) {
- if ((x+1) % p->
c
)
+ if ((x+1) % p->
r
)
printf("-");
else
printf("-+-");