The should update the list of placed pentominoes
The maybe should be That
Returns true if the location a user wants to drop a pentomino in is in fact unoccupied by another pieces.
Pieces should be piece.
Extraneous instructions:
First off, add the following aliases to the
pento/lib/pento/game/board.ex
module:
alias Pento.Game.{Shape, Pentomino}
This isn’t needed as on page 318 the code listing we were told to enter already includes the equivalent code:
defmodule Pento.Game.Board do
alias Pento.Game.{Pentomino, Shape}
defstruct [
active_pento: nil,
completed_pentos: [],
palette: [],
points: []
]