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
This commit is contained in:
16
shared/LinkedListGameBoard.go
Normal file
16
shared/LinkedListGameBoard.go
Normal file
@ -0,0 +1,16 @@
|
||||
package shared
|
||||
|
||||
type GameBoard struct {
|
||||
Start *GamePosition
|
||||
}
|
||||
|
||||
type GamePosition struct {
|
||||
Position int
|
||||
Next *GamePosition
|
||||
}
|
||||
|
||||
type Player struct {
|
||||
PlayerNum int
|
||||
Score int
|
||||
Position *GamePosition
|
||||
}
|
Reference in New Issue
Block a user