Documentation ¶
Index ¶
- func DeleteSession(w http.ResponseWriter, r *http.Request)
- func InitRoutes(db *sessions.Database) *chi.Mux
- func PlayAI(w http.ResponseWriter, r *http.Request)
- func PlayHuman(w http.ResponseWriter, r *http.Request)
- func StartAI(w http.ResponseWriter, r *http.Request)
- func StartHuman(w http.ResponseWriter, r *http.Request)
- func StartHuman2(w http.ResponseWriter, r *http.Request)
- func StartRevHuman(w http.ResponseWriter, r *http.Request)
- type PlayResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSession ¶
func DeleteSession(w http.ResponseWriter, r *http.Request)
DeleteSession removes a completed session
func PlayAI ¶
func PlayAI(w http.ResponseWriter, r *http.Request)
PlayAI handler for returning first move from AI
func PlayHuman ¶
func PlayHuman(w http.ResponseWriter, r *http.Request)
PlayHuman handler for returning moves from human
func StartAI ¶
func StartAI(w http.ResponseWriter, r *http.Request)
StartAI starts session for AI vs AI
func StartHuman ¶
func StartHuman(w http.ResponseWriter, r *http.Request)
StartHuman starts session for human player vs AI
func StartHuman2 ¶
func StartHuman2(w http.ResponseWriter, r *http.Request)
StartHuman2 starts session for human player vs human player
func StartRevHuman ¶
func StartRevHuman(w http.ResponseWriter, r *http.Request)
StartRevHuman starts session for AI vs human player
Types ¶
Click to show internal directories.
Click to hide internal directories.