The following sets are used to represent the necessary 6 bits. The number of heads of the coins (=True) in the respective set determines whether the respective bit is =1 or =0.
A solution to the actual problem is given, e.g. under https://www.3blue1brown.com/lessons/chessboard-puzzle and https://github.com/3b1b/videos/blob/master/_2020/chess.py
You can enter "1" or "2" at the beginning of the program: with "1" an original example for the use of matplotlib is shown, with "2" you get to the actual task
-
Compare the two codes
-
Change the code so that a random distribution of coins is selected only once and is constant from then on
-
Change the code so that the distribution of the coins can be entered via the console instead of the random distribution and is then constant
-
Can the class "SetVectors" also be created generically for squares other than 8x8? A first attempt could be a 4x4 board as in https://abz.inf.ethz.ch/wp-content/uploads/SK_Wehrle_Schachbrettraetsel.pdf
