We can test our game logic by fixing the output value of the random number generator. This saves us from having to click multiple times to test logic if we roll, for example, a 6.
Booleans can be combined using Boolean Or and Boolean And operators to form more complex conditional statements. The Boolean And operator defines a condition that evaluates to true when both boolean conditionals on either side evaluate to true.
Become a software developer in 6 months with Rocket Academy's live and online coding bootcamp. Get a job or a full refund.
Explore Rocket Academy's Coding Basics course:
Coding Basics Blurb: https://rocketacademy.co/courses/basics
Coding Basics Curriculum: https://basics.rocketacademy.co
Rocket Academy: https://rocketacademy.co
Rocket Academy Facebook: / rocketacademy.co