Talk:Esomachine

From Esolang
Jump to navigation Jump to search

Inconsistencies

Here's the example of truth machine from the article:

INDEX_STATE[1, false]
HANDS_EXPECT[]
INDEX_SET[1, HANDS]
OUTPUT[1]
HANDS_JUMP[48, 7]
HANDS_JUMP[49, 2]
INDEX_STATE[1, true]

First conditional jump goes to line 7. Because there are in total only seven instructions, we can safely assume they are counted from 1, not 0. The second jump however, goes to line 2 - requiring another input. That's not how truth-machine works... Also, why the lock at the end? It's not required. Wouldn't this version be more correct:

INDEX_STATE[1, false]
HANDS_EXPECT[]
INDEX_SET[1, HANDS]
OUTPUT[1]
HANDS_JUMP[49, 4]

-- Dart (talk) 16:54, 3 December 2019 (UTC)

Oh, I see you fixed in the new revision. So you can output the value straight from the hands now? -- Dart (talk) 21:22, 6 December 2019 (UTC)