AdventOfCode2021/shared/LinkedListGameBoard.go
Luke Else f406939197 day 21a complete
transferred the game structs to the shared area, linked list can be manipulated to have a different board type and so placing in shared reduces code size
2021-12-21 23:22:04 +00:00

17 lines
210 B
Go

package shared
type GameBoard struct {
Start *GamePosition
}
type GamePosition struct {
Position int
Next *GamePosition
}
type Player struct {
PlayerNum int
Score int
Position *GamePosition
}