Also how extendable can we make this check?
Some ideas: For both games we'll still need an algorithm for get all rows, columns and diagonals, the only difference is the specific comparison when we get n elements. I recommend searching up algorithms online, theres plenty done in C++.
Also otto?
Also how extendable can we make this check? Some ideas: For both games we'll still need an algorithm for get all rows, columns and diagonals, the only difference is the specific comparison when we get n elements. I recommend searching up algorithms online, theres plenty done in C++.