Skip to content

An AI playing the knight-and-knaves logic puzzle. Note that in each section, the AI's knowledge is the minimum to solve the puzzle.

Notifications You must be signed in to change notification settings

Kekedile/knight-and-knaves

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

knight-and-knaves

An AI playing the knight-and-knaves logic puzzle. Note that in each section, the AI's knowledge is the minimum to solve the puzzle.

Puzzle 0 is the puzzle from the Background. It contains a single character, A. A says “I am both a knight and a knave.” Puzzle 1 has two characters: A and B. A says “We are both knaves.” B says nothing. Puzzle 2 has two characters: A and B. A says “We are the same kind.” B says “We are of different kinds.” Puzzle 3 has three characters: A, B, and C. 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 then says “C is a knave.” C says “A is a knight.” In each of the above puzzles, each character is either a knight or a knave. Every sentence spoken by a knight is true, and every sentence spoken by a knave is false.

About

An AI playing the knight-and-knaves logic puzzle. Note that in each section, the AI's knowledge is the minimum to solve the puzzle.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages