I've got this 3 x 3 array of char that's supposed to represent a tic-tac-toe board, and before, I would use a bunch of "if" statements to see if there were 3 in a row.
... if ((board[0][0] == board[0][1]) && (board[0][1] == board[0][2])) { ... } ...
I realized that this is a lot of typing, and quite error-prone, so is there a better way to do this?