15/cli/main.go

22 lines
256 B
Go
Raw Permalink Normal View History

2023-07-25 11:20:51 +03:00
package main
2023-07-26 11:30:13 +03:00
import "os"
2023-07-25 11:20:51 +03:00
func main() {
2023-07-26 11:30:13 +03:00
message := "Only 'game' and 'solve' options supported"
if len(os.Args) == 1 {
panic(message)
}
switch os.Args[1] {
case "game":
StartGame()
case "solve":
StartSolver()
default:
panic(message)
}
2023-07-25 11:20:51 +03:00
}