inkle / inkle/ink

If statements evaluate a line before they are reached

Open
#158 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

In C#, my game evaluates this story line by line using `Continue()`. When it sees `VERDICT`, it sets a value into the `verdict` variable from the game side.

However, after continuing to evaluate, it doesn't correctly branch at `verdict < 0.1` with the updated variable.

However, if I add an extra line of text after `VERDICT`, it does work correctly, avoiding the bug,

```
How do you find the defendant?
VERDICT
{verdict < 0.1:
-> acquittal ->
- else:
-> execution ->
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with the provided story and trace how Continue() evaluates VERDICT and the following conditional branch. Confirm the branch uses the updated verdict value without requiring an extra line of text; no file or test location is specified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.