0
Code 4x4 TicTacToe in c++?
Hey everyone, I want to make a 4x4Tic tac toe in c++ but this 'TicTacToe' is different to normal one. It can be played by three players.Three players take turns marking the spaces in a 4×4 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.Do you guys know how to make it?Thanks.
2 Respostas
0
Some points:
2D array (char or string)
print it after every round.
Tell which player's turn
they have to enter coordinates of where they want to place marker
check if valid
place it
look for 3 in a row, end game?
else next round, start at 2
I can't await to see your code!
0
You can use an enum class with char in the background for the field types.
And you can use this data type for the board:
std::array<std::array<field_type, 4>, 4>