Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Instruction ¶
func ParseInstruction ¶
func ParseInstruction(s string) (Instruction, error)
func (Instruction) String ¶
func (i Instruction) String() string
type ShipWithWaypoint ¶
func NewWithWaypoint ¶
func NewWithWaypoint(pos Pos, waypoint Pos) *ShipWithWaypoint
func (*ShipWithWaypoint) Distance ¶
func (s *ShipWithWaypoint) Distance() int
func (*ShipWithWaypoint) Process ¶
func (s *ShipWithWaypoint) Process(inst Instruction)
func (*ShipWithWaypoint) Report ¶
func (s *ShipWithWaypoint) Report() string
func (*ShipWithWaypoint) RotateWaypoint ¶
func (s *ShipWithWaypoint) RotateWaypoint(deg int)
Click to show internal directories.
Click to hide internal directories.