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:
2021-12-21 23:22:04 +00:00
parent 73de067afc
commit f406939197
2 changed files with 26 additions and 24 deletions

View 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
}