Soft'N'Design Software
/
projects
/
bs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43f0a01
)
fix moves (2)
author
Laurent MAZET
<laurent.mazet@thalesgroup.com>
Mon, 3 Jun 2024 11:26:49 +0000
(13:26 +0200)
committer
Laurent MAZET
<laurent.mazet@thalesgroup.com>
Mon, 3 Jun 2024 11:26:49 +0000
(13:26 +0200)
battleships.c
patch
|
blob
|
blame
|
history
diff --git
a/battleships.c
b/battleships.c
index babcf06af63d2a20ef25b7f962a8d5d09dadab61..00c201959373233a58dd9321978b302f1618843b 100644
(file)
--- a/
battleships.c
+++ b/
battleships.c
@@
-195,7
+195,7
@@
int main (int argc, char *argv[])
}
} else {
int t;
- for (t =
y
- 1; t >= 0; t--) {
+ for (t =
x
- 1; t >= 0; t--) {
if (testlocation (boardcomputer, 1, t, y, orient, " S")) {
x = t;
break;