Source Code for the above project demonstration is given in the following link:
https://github.com/diesel707/Knights
The above program solves the following four puzzles.
Puzzle 0
A says "I am both a knight and a knave."
Puzzle 1
A says "We are both knaves."
B says nothing.
Puzzle 2
A says "We are the same kind."
B says "We are of different kinds."
Puzzle 3
A says either "I am a knight." or "I am a knave.", but you don't know which.
B says "A said 'I am a knave'."
B says "C is a knave."
C says "A is a knight."
A knight will always tell the truth.
A knave will always lie.
En esta página del sitio puede ver el video en línea CS50 Artificial Intelligence - Project 1a - Knights using Python de Duración hora minuto segunda en buena calidad , que subió el usuario Harkesh Patel 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 271 veces y le gustó 31 a los espectadores. Disfruta viendo!