through my method, then taking fosley's table and putting it up against an inverse

table I did while explaining them.

I got my answer by working it in the form of an If statement.

It's a bit different than the actual programming lauguage since

I don't believe there is anything with .Statement as an ending...

If you read think about it, this does work since the lines coding

are just line of logic. It may be long, but I like If Statements.

goldenBox.Statement = "The ring is in this box" silverBox.Statement = "The ring is not in this box" leadBox.Statement = "The ring is not in the golden box" trueStatements.Statement = False oneTrue.Statement = False ' Gets set to true if first If ' statement doesn't work. If trueStatements.statements = False then goldenBox.Statement = False silverBox.Statement = False leadBox.Statement = False ' But, if leadBox.Statement is False ' then goldenBox.Statement would be True. ' Yet that would cause a conflict ' if all statements are False so that ' means one satatement is True. MessageBox.Show("This is improbable.", "Logic Error", MessageBoxButtons.OK, MessageBoxIcon.Error) oneTrue.Statement = True End If If oneTrue.statement = True then If goldenBox.Statement = True Then silverBox.Statement = False leadBox.Statement = False ' This is not possible because if ' silverBox.Statement is False then ' the ring would be in the Silver Box, but ' that would contradict the Golden Box ' which should be true. So Golden Box does ' not equal True. ' Error! ElseIf silverBox.Statement = True Then goldenBox.Statement = False leadBox.Statement = False ' Using the same logic as the Golden Box ' If the Golden Box is lying then ' the ring is not in the Golden Box. Which ' would be backed up by the Lead Box's claim ' that the Golden Box doesn't contain the ring ' IF the Lead Box's statement wasn't flagged as ' False. Since it is, it throws up the same ' conflict as the Golden Box. The Lead Box being ' False would tell us that the Golden Box would ' have the ring. Therefor the Silver Box does ' not equal True. ' Again Error! ElseIf leadBox.Statement = True Then goldenBox.Statement = False silverBox.Statement = False ' If the Lead Box is truthful and the Golden ' Boxes as well as the Silver Boxes statements ' would be false. If Golden's statemtent is false, ' the ring would either be in the Silver or Lead ' boxes. If Silver's Statement is false then the ' ring would be in there and since The Lead Box is ' used against the Golden Box to tell us that the Golden ' Box is not truthful, it makes the Silver Box the ' box with the ring by denying the claim the Golden Box ' had on the ring. End If End If ----------------------------------------------------------------------------------------- Truth Table: "If Ring Was In Box 'X'" (Could also be called "If Box 'X' Is Truthful") (This is fosley's Truth Table Shortened. ) _______________________________________________ | | Inscriptions | |---------------------------------------------| | Golden | The ring is in this box. | | Silver | The Ring is Not in this box. | | Lead | The Ring is not in the golden box.| ----------------------------------------------- VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV -------------------------------------------------------------------- | | Golden | Silver | Lead | Tally | Tally | | | Truth | Truth | Truth | Truth | False | |------------------------------------------------------------------- | Golden | T | T | F | 2 | 1 | |------------------------------------------------------------------- | Silver | F | F | T | 1 | 2 | |------------------------------------------------------------------- | Lead | F | T | T | 2 | 1 | -------------------------------------------------------------------- ---------------------------------------------------------------- | Note: Table above refers to If Box X's Inscription (The Boxes| | in the Columns) is true would the ring be in Box R (The Boxes| | in the Rows). But you already knew that. Just clarifying it. | ---------------------------------------------------------------- _______________________________________________ | | Inscriptions | |---------------------------------------------| | Golden | The ring is in this box. | | Silver | The Ring is Not in this box. | | Lead | The Ring is not in the golden box.| ----------------------------------------------- VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV Truth Table: "If Box 'X' is Lying" -------------------------------------------------------------------- | | Golden | Silver | Lead | Tally | Tally | | | Lying | Lying | Lying | Truth | False | |------------------------------------------------------------------- | Golden | F | F | T | 1 | 2 | |------------------------------------------------------------------- | Silver | T | T | F | 2 | 1 | |------------------------------------------------------------------- | Lead | T | F | F | 1 | 2 | -------------------------------------------------------------------- ----------------------------------------------------------------------- | Note: Table above is saying if the box in the column is lying what | | boxes could have the ring in it. It's just the opposite of the | | previous Truth Table. Since the results came back inverse of the | | first table we know that we didn't screw up somewhere along the way.| | THUS... | -----------------------------------------------------------------------Answer!: The Silver Box has the ring!