aardappel / lobster

The Lobster Programming Language
http://strlen.com/lobster
2.25k stars 119 forks source link

Fix for eating bread not reducing hunger. #129

Closed MortimerSnerd closed 3 years ago

MortimerSnerd commented 3 years ago

The goaptest.lobster works fine, but I noticed while trying to change it to force other outcomes that it would not buy flour and make bread when I changed the states and costs.

Ends up being a syntax problem, where the action of "eat" was accidentally including the "s[hungry]--" in the else block.

aardappel commented 3 years ago

Wow, what a find! Thanks :)