vvvcccc

unsure how computer vs. player determines winner.  Rewatched video 3 times, but still unsure.  Reversed my logic in thinking and sems to work, but unsure of why?