This is supposed to generate and print a tic tac toe program which is seeded by the user's input. It generates the tic tac toe board by using a variable which is assigned to randomly generate either a 1 or a 2, which is prints as X and Y. My problems currently are getting the function "validBoard" to work properly.
validBoard is supposed to check whether or not the board is valid by checking the sum of the 1s and 2s. If the sum is out of the range 15 to 12 then it is invalid. When I run, it says every board is invalid, even when they aren't.