What's a more efficient way to test for a winner in 3D tic tac toe? (Java)
I have a method named "testIfWinner" and it takes String    board, String player, int count, String placeHolderString. Currently I have my method to test every variable in each element of the array. "if(!board.equals(placeHolderString) & & board.equals(board) & & board.equals())" and so on for every combination. So basically I was wondering if anyone knew of a faster solution so I can reduce all these lines of code to a few. Any help is appreciated!