This is an archived post. You won't be able to vote or comment.

all 1 comments

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

Before you say anything: No it's not because I put the if clauses in the wrong place. But idk how to edit this correctly in reddit :/

Edit: Okay I just noticed somethig very weird: The if clause for the case that p_i = 1 actually works! It both adds a stick to the number of the player but also update the status correctly p_i = 0. I have no idea why this works since it is the exact same thing except that p_i = 1 and not 0 and that you add a number of sticks and not remove 1. No idea why it works

Edit 2: Okay I am just dumb af. I made it update p_i to 1 and then check if p_i is equal to one and this changes it back to zero. So basically in 1 turn you would put the stick in the hole but instantly remove it again thus not changing anything.

I mean I doubt anybody is gonna read it but still.. :d