Can I manipulate the way that variables change in Java?
<p>If the die shows a 6, the player doesn't move at all on this turn and also forfeits the next turn.</p>

<p>To accomplish this, I have tried an integer type warning marker variable for the player and an integer type time counter variable. </p>

<p>If the die shows 6, I want to increment the warning marker variable by 1 during the first run(and have the while loop do nothing), then keep the value at 1 during the second run (while loop will not work), then lower it back down to 0 for the third run of the while loop (so the while loop will work). The marker will stay at zero unless the die shows a 6 again, after which the same process will repeat.</p>

<p>I have a while loop like this:</p>

<pre><code>while the warning marker is equal to 0 {
    Do Stuff
    if the die shows a 6, the warning marker increases by 1.
    the time counter also increases by 1.
}
</code></pre>

<p>How do I manipulate the variables to get the result that I need? Or is my partially complete method absolutely off in terms of logic?</p>

<p>Thanks.</p>
