Luke Else
f406939197
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
17 lines
210 B
Go
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
|
|
}
|