Documentation
¶
Overview ¶
Package parking provides an animated simulation of cars (emoji) entering and exiting a parking lot (line art).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lot ¶
type Lot struct {
// contains filtered or unexported fields
}
Lot captures the states of all cars and the data structures necessary to coordinate their right of way for each tick.
func NewLotForBounds ¶
NewLotForBounds creates a parking lot that covers the given rectangle, rounding up.
Click to show internal directories.
Click to hide internal directories.