Question; C++ Ping Pong

Hello
In lvl PingPong…

why does the argument “Fetch” continue to execute outside the while loop? The cat runs after the “ball” even though it is not included in the while loop!

int main() {
        hero.say("fetch");
        while(true) {
            hero.attack("ball2");
            hero.moveRight(3);
            hero.attack("ball2");
            hero.moveLeft(3);
        }
    return 0;
}

is my post in the wrong place?
Im very sry

thx

Hi @tryn4x! Welcome to the CodeCombat Discourse! This is a safe place to chat and ask for level help. Before you begin your journey, could you please go through our rules that make this discourse an awesome place? It helps us all :grin: We hope you enjoy your stay!!

Could you also show us your code and format it correctly? You can learn how to format it here.