Menu

[solved] – Question 81593

// Continue playing as long as the game is not over
// (a team does not have a score of 15 or more
// with a difference of at least 2)

while (!((buffstate >= 15 || notredame >= 15) && (buffstate – notredame <= 2 || notredame – buffstate >= 2)))
Im not sure if my boolean expression is correct? The program executes, however its not following the (difference of at least 2 for the score)

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *