Hi! To get to see the shapes on the board, I think that where it says:
# lib/pento_web/live/game_live/board.ex
def assign_shapes(%{assigns: %{board: board}} = socket) do shape = Board.to_shape(board)
assign(socket, shapes: [shape])
end
It should say this intead:
def assign_shapes(%{assigns: %{board: board}} = socket) do
shapes = Board.to_shapes(board)
assign(socket, shapes: shapes)
end
Otherwise, the Pentomino shapes are not drawn (only the board tiles in purple).
Is that right?
Thanks!