15/cli/main.go
2023-07-26 11:30:13 +03:00

21 lines
256 B
Go

package main
import "os"
func main() {
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)
}
}