Your result

kody
Join Kody

Open the safety gate

Change activity
Boolean AND

Open the safety gate

Goal

Make the AND output TRUE in at most 3 flips.

Preview board

Not run

Add instructions, then run your pseudocode.

Pseudocode

0 / 3 instructions

    Ready to run.
    How it works
    Boolean AND

    Evaluate a Boolean condition across several inputs.

    Key rule

    AND needs all inputs true; OR needs at least one; XOR is true for an odd number of true inputs. FLIP negates one input.

    Worked example
    Different example: TRUE AND FALSE is FALSE; TRUE XOR TRUE is FALSE. Flipping a switch changes the expression inputs.
    Win condition

    Complete the pseudocode and concept check.

    Show a hint

    One TRUE input is not enough for AND. Identify every FALSE input.

    Related modules
    Edit text

    Enter one instruction per line. You can use the displayed pseudocode or commands from the reference.

    Command reference

    Return to Tower level 2

    WELCOME TO KODY

    A little play. A lot of possibility.

    I’m Kody, your coding companion. Your adventure is ready. Let’s find our way around.

    Log in