Documentation
¶
Overview ¶
A number guessing game.
Index ¶
Constants ¶
View Source
const CorrectEvent cg.EventName = "correct"
You guessed the correct number.
View Source
const GuessCmd cg.CommandName = "guess"
Send the `guess` command to make a guess.
View Source
const TooHighEvent cg.EventName = "too_high"
You guessed too high.
View Source
const TooLowEvent cg.EventName = "too_low"
You guessed too low.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorrectEventData ¶
type GameConfig ¶
type GuessCmdData ¶
type GuessCmdData struct { // The number you guess. Number int `json:"number"` }
type TooHighEventData ¶
type TooHighEventData struct { // The guessed number. Number int `json:"number"` }
type TooLowEventData ¶
type TooLowEventData struct { // The guessed number. Number int `json:"number"` }
Click to show internal directories.
Click to hide internal directories.