if ((board[0][0]) == (board[0][1]) == (board[0][2])){
return 1;
}
if ((board[1][0]) == (board[1][1]) == (board[1][2])){
return 2;
}
if ((board[2][0]) == (board[2][1]) == (board[2][2])){
return 3;
}
I am trying to check if certain elements in an array(board[3][3]) to return a number if specific elements are equal.
but I am getting this warning :
suggest parentheses around comparison in operand of ‘=='[-Wparentheses]
New contributor
code_breaker_zero is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
4