How to Solve NameError: name 'Board' is not defined -- chess

Solution: Import the 'Board' module

To Solve the error, add the following line to the top of your code.

from chess import Board

 

For more information:
Python chess Board