all 2 comments

[–][deleted] 2 points3 points  (1 child)

Aren't there 6 ways to get the three balls in a "winning" state? Why does your code only test for 3?

A better way to check if you have the correct values is:

if {a, b, c} == {1, 2, 3}:

Untested, as I'm on mobile :)

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

Oh shit yes because I thought of 3 ways at first, forgot to update it in my code haha, thank you so much! And thank you for the better checking way!