ref: 14b434cb88d192a4a5cb2306115dec28cc69e714
parent: a8df0189ff9f49db04f9a33ae61bfcd1c1486c80
author: Ben Harris <bjh21@bjh21.me.uk>
date: Tue Dec 6 19:17:08 EST 2022
guess: Move the cursor to the first peg position after a guess It's annoying having to move it to the left each time. I suppose I could enter the second guess in reverse order, but then I'd need to move the cursor all the way to the right to submit it, which is just as bad.
--- a/guess.c
+++ b/guess.c
@@ -507,7 +507,7 @@
ui->markable = is_markable(&newstate->params, ui->curr_pegs);
/* Clean up cursor position */
if (!ui->markable && ui->peg_cur == newstate->solution->npegs)
- ui->peg_cur--;
+ ui->peg_cur = 0;
}
#define PEGSZ (ds->pegsz)