Add a bunch of TODOs

This commit is contained in:
Marc Di Luzio 2020-06-07 23:17:56 +01:00
parent 65818ed0e1
commit 35806576f9
5 changed files with 9 additions and 0 deletions

View file

@ -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":

View file

@ -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 {

View file

@ -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)
) )

View file

@ -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(),
}, },
} }

View file

@ -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
} }
// ============================== // ==============================