mirror of
https://github.com/cjdenio/crossword.git
synced 2026-10-03 11:06:19 +00:00
makefile + small stuff
This commit is contained in:
3 files changed
+9
-3
No files matched your search
@@ -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
|
||||||
@@ -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
@@ -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] == '~' {
|
||||||
|
|||||||
Reference in new issue
Block a user