Exemple #1
0
func NewBoard(b interfaces.Board) *Board {
	sb := &Board{}

	sb.Level = b.GetId()
	sb.Layers = make([][]string, 1)
	sb.Layers[0] = b.GetRender()

	return sb
}
Exemple #2
0
func (g *Game) AddBoard(board interfaces.Board) {
	g.Boards[board.GetId()] = board
}