Explain

How do you explain this line below?



 
 found = winner(board) == computer;
found is a boolean and the value of it is the result of the winner function equaling computer what ever they are.

Basically its either

found = true or found = false


So say winner(board) returns 1 and computer is 1 then found is true
say winner(board) returns 1 and computer is 2 then found is false.
Thank you very much!
Topic archived. No new replies allowed.