Skip to toolbar

Reply To: Multiple Tokens

Welcome Forums Get help Multiple Tokens Reply To: Multiple Tokens

#1312
mystify
Participant
if hero has token "Ax"
    hero says "I have too many."
else
    if hero lacks token "Sword"
        hero says "I don't have three"
    else
        if hero lacks token "Gun"
            hero says "I don't have three"
        else
            if hero lacks token "Pen"
                hero says "I don't have three"
            else
                hero says "I have three"

This is the code used for the results I got from above.
I’m so happy I finally figured it out. (=´∇`=)

0