Ad
  • Custom User Avatar

    The pawn is always in the last row as it will now turn into one of the four pieces ...

    This is explicit. If you are not satisfied with it, make a concrete suggestion.

  • Default User Avatar

    in Chess terms you can see it that way : the board is seen from Black's perspective; White has just moved its pawn to the last (8th) rank and has to choose a promotion piece in order to immediately put Black in check, if possible

  • Custom User Avatar

    I added type hints to the Python initial solution.