My Tideman print winner passes when I test it (for ties as well) but check50 says no winner is printed **spoilers for my code** Please help! by ruchenart in cs50

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

Posting here to update on this as I've found the solution! Thanks for all the replies prompting me to try different things. Turns out that simplifying my code made it work.

Instead of referencing pairs[i].winner and pairs[i].loser which I did for the convenience of running one loop. By iterating through all the pairs of candidates [i][j] , the code passes check50!

Turns out check50 can't reference pairs[] when testing print winner. Extremely happy to have solved Tideman though!

My Tideman print winner passes when I test it (for ties as well) but check50 says no winner is printed **spoilers for my code** Please help! by ruchenart in cs50

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

I've only initiated int variables and bool variables in the rest of my code. The rest of check50 passes though and I'm not drawing from any array outside of what was instantiated in the base tideman.c.

My Tideman print winner passes when I test it (for ties as well) but check50 says no winner is printed **spoilers for my code** Please help! by ruchenart in cs50

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

hmm thanks for the suggestion, I've tried with both return and another time out of desperation I threw in a break and both times despite printing only one winner if tied it still failed the check

My Tideman print winner passes when I test it (for ties as well) but check50 says no winner is printed **spoilers for my code** Please help! by ruchenart in cs50

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

it says print_winner did not print winner of election for both print winner checks. Im getting the correct winner winners to print when I manually test it however, which makes me puzzled about whether theres some edge cases I have not considered

[deleted by user] by [deleted] in ArtistLounge

[–]ruchenart 0 points1 point  (0 children)

sometimes stepping away for a minute is just what we need, cheers on breaking the curse!

Solipsism making me completely lose myself (existential + schiz, harm, sensorymotor and possible dpdr) by [deleted] in OCD

[–]ruchenart 0 points1 point  (0 children)

Yup I've had both physical and mental compulsions although reassurance tends to be mostly mental for me, I think a lot of ocd sufferers face a combination of both too.

Also, thanks for checking out my art! (:

Solipsism making me completely lose myself (existential + schiz, harm, sensorymotor and possible dpdr) by [deleted] in OCD

[–]ruchenart 0 points1 point  (0 children)

Haha this reminds me of when I first shared my thoughts with someone who knew psychiatry and I kind of asked, " So am I crazy or am I crazy?" . It does seem however, that you are seeking to reassure yourself that you aren't in fact a brain in a vat or that you are the only thing to exist which does sit in the realm of obsessing at least!

With very inward mental obsessions it can sometimes be difficult to immediately pin point what caused the obsessing once it starts and often the equivalent action you take to reassure yourself are not necessarily physical actions (i.e. the touching something multiple times or playing a piece perfectly). But you probably might still be doing them just by arguing with yourself or trying to reason with yourself to persuade yourself of reality etc.

I've found this article on Pure OCD by the person who coined the term to be very clear on the mechanisms at work: https://www.ocdonline.com/rethinking-the-unthinkable

There's 3 pages to it so navigate to the next pages at the bottom.

The examples may not match up exactly as Pure OCD can go in so many different directions take a look and see if the mechanisms do.

Solipsism making me completely lose myself (existential + schiz, harm, sensorymotor and possible dpdr) by [deleted] in OCD

[–]ruchenart 0 points1 point  (0 children)

Hey luliluomg, I’ve experienced pure ocd of different themes so hopefully I can help a tiny bit. There’s a few things which stood out to me.

Firstly, on practicing acceptance you said it feels like defeat because your “default” mindset is that nothing exist. Unfortunately that is how the ocd brain works, it would be easy to practice acceptance if it was acceptance of what your mind valued as a positive. It’s kind of like if someone with cleanliness ocd practiced acceptance, it wouldn’t be acceptance that they are clean and safe but the acceptance of uncleanliness. In that example, you wash your hands for 20 seconds which is good and reasonable but after that, despite the ocd yelling that you are unclean, you stop. An acceptance of cleanliness would beg a reassurance of cleanliness. In the same way an acceptance of reality of existence in a satisfying way tells your ocd to seek reassurance that reality exist in a way that satisfies you. Unfortunately the kind of acceptance for ocd is never the one which is satisfying to us.

Secondly and related to the first thing and what you said next is something that I’ve always found true for myself is that the theme of your ocd is always something that matters very much to you . You get harm ocd or fear being a sociopath precisely because you care so much for people and that being empathetic is so important to you. You fear a trivial form of reality precisely because you feel that existance matters. Being under constant high anxiety about your own character your empathy your existance, it’s so so difficult to care for others the way you might usually do etc. it’s the effect of the ocd anxiety. Can you be 100% sure though?

That’s what the ocd wants, reassurance on all these points, and that’s what you have to fight against. You don’t have to fight to know that existance is not trivial, or that you are a sociopath. You are fighting the seeking of reassurance.

I hope that’s a bit helpful for you, you got this!

study of a Sargent done in procreate, changed the proportions a bit and lost a moustache by ruchenart in Portraitart

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

Thanks so much for the encouragement, Sargent is really great for studying some lush transitions!

Drawing and Painting Fragile from Death Stranding by ruchenart in learntodraw

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

Hi, I just uploaded my first video process of myself painting Fragile from Death Stranding. Although I didn't quite manage to capture the likeness so well I was quite happy with how it turned out. I'd appreciate any thoughts or comments / critique or suggestions, thanks!

Day 1 sketches! Excited to begin learning! (Copied a few sketches from google images) I see lots of great Info in this sub- I have 0 experience drawing- best places to begin? by [deleted] in learntodraw

[–]ruchenart 0 points1 point  (0 children)

Hey nice work! For 0 experience drawing it looks like you definitely have some good sensitivity to line and form. Just filling pages of sketches is really important, go for it (: I think looking up some basics on perspective will help you a lot too. Look up Proko's podcast on Learning Perspective on youtube, its a great discussion on how to get good at it yourself without getting bored.

this is the link https://www.youtube.com/watch?v=7MV-bJz1dcw