-
Notifications
You must be signed in to change notification settings - Fork 1
/
structs.go
21 lines (17 loc) · 985 Bytes
/
structs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package main
type Destination int
type GameColor int
type DestinationTicket struct {
d1, d2 Destination //endpoints
points int //score
}
type GameConstants struct {
NumDestinations, NumTracks, NumColorCards, NumRainbowCards, NumStartingTrains, NumFaceUpTrainCards, NumGameColors, NumInitialTrainCardsDealt, NumInitialDestinationTicketsOffered, NumInitialDestinationTicketsPicked, NumDestinationTicketsOffered, NumDestinationTicketsPicked, NumPlayers, LongestPathScore int
routeLengthScores []int
}
type Track struct {
idx int //position in array
d1, d2 Destination // two endpoints
c GameColor //what color
length int // What is the length of the road
}