Draft: big refactor

This commit is contained in:
2025-09-16 16:03:27 +08:00
parent f527230f1e
commit 7ee2163a95
33 changed files with 338 additions and 155 deletions

29
server/wordle/handlers.go Normal file
View File

@@ -0,0 +1,29 @@
package wordle
import "gitea.konchin.com/ytshih/inp2025/game/types"
type Operation struct {
}
type Handlers struct {
state WordleState
opCh chan Operation
subs []chan types.WordleState
}
func NewHandlers() *Handlers {
ret := &Handlers{subs: nil}
go ret.GameFlow()
return ret
}
func (self *Handlers) GameFlow() {
for {
select {
case op := <-self.opCh:
if opCh.Type {
}
}
}
}