package game
import (
"fmt"
)
type Position struct {
X int
Y int
}
func (p *Position) String() string {
if *p == INVALID_POSITION() {
return "INVALID_POSITION"
}
return fmt.Sprintf("(%d, %d)", p.X, p.Y)
}
func INVALID_POSITION() Position {
return Position{-1, -1}
}