code: func (p Piece) Type() PieceType {
  	switch p {
  	case WhiteKing, BlackKing:
  		return King
  	case WhiteQueen, BlackQueen:
  		return Queen
  	case WhiteRook, BlackRook:
  		return Rook
  	case WhiteBishop, BlackBishop:
  		return Bishop
  	case WhiteKnight, BlackKnight:
  		return Knight
  	case WhitePawn, BlackPawn:
  		return Pawn
  	}
  	return NoPieceType
  }
docs: // Type returns the type of the piece.