Add a bunch of TODOs
This commit is contained in:
parent
65818ed0e1
commit
35806576f9
5 changed files with 9 additions and 0 deletions
|
@ -16,6 +16,7 @@ import (
|
||||||
var USAGE = ""
|
var USAGE = ""
|
||||||
|
|
||||||
// Command usage
|
// Command usage
|
||||||
|
// TODO: Allow COMMAND to be used first
|
||||||
func Usage() {
|
func Usage() {
|
||||||
fmt.Printf("Usage: %s [OPTIONS]... COMMAND\n", os.Args[0])
|
fmt.Printf("Usage: %s [OPTIONS]... COMMAND\n", os.Args[0])
|
||||||
fmt.Println("\nCommands:")
|
fmt.Println("\nCommands:")
|
||||||
|
@ -173,6 +174,8 @@ func InnerMain(command string) error {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("radar blips: %+v\n", response.Blips)
|
fmt.Printf("radar blips: %+v\n", response.Blips)
|
||||||
|
|
||||||
|
// TODO: Do some art
|
||||||
}
|
}
|
||||||
|
|
||||||
case "rover":
|
case "rover":
|
||||||
|
|
|
@ -6,6 +6,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// TODO: Pull this out into math package and get more test coverage
|
||||||
|
|
||||||
// Abs gets the absolute value of an int
|
// Abs gets the absolute value of an int
|
||||||
func Abs(x int) int {
|
func Abs(x int) int {
|
||||||
if x < 0 {
|
if x < 0 {
|
||||||
|
|
|
@ -7,6 +7,7 @@ const (
|
||||||
TileEmpty = Tile(0)
|
TileEmpty = Tile(0)
|
||||||
TileRover = Tile(1)
|
TileRover = Tile(1)
|
||||||
|
|
||||||
|
// TODO: Is there even a difference between these two?
|
||||||
TileWall = Tile(2)
|
TileWall = Tile(2)
|
||||||
TileRock = Tile(3)
|
TileRock = Tile(3)
|
||||||
)
|
)
|
||||||
|
|
|
@ -55,6 +55,7 @@ func (w *World) SpawnRover() (uuid.UUID, error) {
|
||||||
Range: 5.0,
|
Range: 5.0,
|
||||||
|
|
||||||
// Set the name randomly
|
// Set the name randomly
|
||||||
|
// TODO: Fix the stupid "'s"
|
||||||
Name: babble.NewBabbler().Babble(),
|
Name: babble.NewBabbler().Babble(),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,8 @@ type StatusResponse struct {
|
||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
Tick int `json:"tick"`
|
Tick int `json:"tick"`
|
||||||
NextTick string `json:"nexttick,omitempty"`
|
NextTick string `json:"nexttick,omitempty"`
|
||||||
|
|
||||||
|
// TODO: return more useful info
|
||||||
}
|
}
|
||||||
|
|
||||||
// ==============================
|
// ==============================
|
||||||
|
|
Loading…
Add table
Reference in a new issue