~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
I am COMPLETELY GORMLESS. The Solo grid generator, when eliminating
[sgt/puzzles]
/
pegs.c
diff --git
a/pegs.c
b/pegs.c
index
5bb5de2
..
4abe116
100644
(file)
--- a/
pegs.c
+++ b/
pegs.c
@@
-869,7
+869,7
@@
static game_state *execute_move(game_state *state, char *move)
int sx, sy, tx, ty;
game_state *ret;
- if (sscanf(move, "%d,%d-%d,%d", &sx, &sy, &tx, &ty)) {
+ if (sscanf(move, "%d,%d-%d,%d", &sx, &sy, &tx, &ty)
== 4
) {
int mx, my, dx, dy;
if (sx < 0 || sx >= w || sy < 0 || sy >= h)