Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UpLowerCase = []byte(`w`) DownLowerCase = []byte(`s`) LeftLowerCase = []byte(`a`) RightLowerCase = []byte(`d`) ResetLowerCase = []byte(`r`) UpUpperCase = []byte(`W`) DownUpperCase = []byte(`S`) LeftUpperCase = []byte(`A`) RightUpperCase = []byte(`D`) ResetUpperCase = []byte(`R`) QuitLowerCase = []byte(`q`) QuitUpperCase = []byte(`Q`) QuitUsingCtrlC = []byte{3} )
Functions ¶
This section is empty.
Types ¶
type Moves ¶
type Moves interface { // Start will initiate the play to simulate movements for the character Start() (err error) // Reset will redefine the default states of the X and Y positions Reset() // Up moves the character upward Up() // Down moves the character down Down() // Left will turn the character to the left Left() // Right will turn the character to the right Right() }
Moves is an interface that defines methods to simulate movements for the character like Gopher
Click to show internal directories.
Click to hide internal directories.