Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

Why does it not work properly?

CapnDom
CapnDom

So I am fairly new to coding in general, this is but my second repl, but I am stumped. I look at it for such a long time now I just feel stuck.

Whenever I play I lose.

I am really not sure why, I set parameters, I have written out all possible actions and yet I never can win or tie.

Can you have a look over this and tell me where it went wrong?

BTW: I used to initially code with elif instead of if statements below, but it didn't change much. The lose messages were modified so I can see where the error occurs.
The programm recognises my input and then simply skips the win or tie scenarios and immediately prints the lose messages, the "else" parameters.

1 year ago
You are viewing a single comment. View All
1
CapnDom
CapnDom

@MikeW3
Yes, yes. I was a little quick. I changed it myself before I saw your comment, but now it works perfectly fine. Thank you for your help.

I now need to sit down and try to understand why it didn't work before.

1 year ago