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.
In questa pagina del sito puoi guardare il video online CS50 Artificial Intelligence - Project 1a - Knights using Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Harkesh Patel 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 271 volte e gli è piaciuto 31 spettatori. Buona visione!