makefile + small stuff

This commit is contained in:
cjdenio committed 2026-09-10 10:11:42 -05:00
1 parent a87433ce9e
commit 1ae13edd35
3 files changed
+9 -3

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
all: bin/crossword bin/ssh
bin/crossword: main.go puz/puz.go game/game.go
go build -o $@ .
bin/ssh: ssh/main.go puz/puz.go game/game.go
go build -o $@ ./ssh
+1 -2
View File
@@ -5,7 +5,6 @@ todo
- timer - timer
- reveal grid/word - reveal grid/word
- .puz checksums - .puz checksums
- fix shift+enter in other terminals - fix shift+enter / short+tab in other terminals
- after entering letter, jump to next unfilled cell (even if it's backwards) - after entering letter, jump to next unfilled cell (even if it's backwards)
- tab/shift+tab
- clear grid - clear grid
+2 -1
View File
@@ -396,6 +396,7 @@ func (state *State) HandleInput(buffer []byte) (exited bool) {
if state.GridFilled() { if state.GridFilled() {
if state.CheckPuzzle() { if state.CheckPuzzle() {
state.SolveState = 2 state.SolveState = 2
return true
} else { } else {
state.SolveState = 1 state.SolveState = 1
} }
@@ -417,7 +418,7 @@ func (state *State) HandleInput(buffer []byte) (exited bool) {
} }
} }
if buffer[0] == '\r' { if buffer[0] == '\r' || buffer[0] == '\t' {
state.NextWord() state.NextWord()
} }
if buffer[0] == '~' { if buffer[0] == '~' {