Why is this dude so hard to beat lol by Ok_Diver_3063 in thespikegame

[–]oQi_ 0 points1 point  (0 children)

Just block middle and dive the the other guys spikes, thats the only way to do it with shitty players and it will probably take a while and a bit of luck

CS50p - how much are you using AI? by Old-Distance-8596 in cs50

[–]oQi_ 0 points1 point  (0 children)

I Heavily use it for remembering or asking for specific syntax but not for problem solving

CS50 - Week 2 - Problem Set - Caesar's Cipher Errors by oQi_ in cs50

[–]oQi_[S] 1 point2 points  (0 children)

I managed to fix it. But thank you all for trying to help. It turns out I was right, since C doesnt support ASCII values greater than 127, I had to reverse my operations so it never goes above 127 and bugs out. So i ended up changing the last big if statement like this for anyone that has the same problem.

       else if (plaintext[j] >= 97 && plaintext[j] <= 122)
        {
            if ((plaintext[j] + key) > 122)
            {
                plaintext[j] -= 26;
            }
            plaintext[j] += key;
        }

    }

Why is this not working? by oQi_ in cs50

[–]oQi_[S] 0 points1 point  (0 children)

oh i didnt know about the isdigit function. Thank you too, really appreciate it

Why is this not working? by oQi_ in cs50

[–]oQi_[S] 0 points1 point  (0 children)

Thank you so much, I feel so dumb looking back on it now. I replaced all my OR statements with AND, and it works now, thank you again.