Skip to content

igeldo/ChessboardEscapeSolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The "Impossible Chessboard Problem" - Chessboard Escape Solution

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.

sets.png

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

Explanation of program execution

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

Tasks and Exercises

  1. Compare the two codes

  2. Change the code so that a random distribution of coins is selected only once and is constant from then on

  3. 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

  4. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages