Question: A 4 by 4 tic - tac - toe board is an 2 - dimensional array of char in which each element is either an
A by tictactoe board is an dimensional array of char in which each element is either an XO or
The game is like normal tictactoe but the players may keep playing even after someone has three in a row. After the board is full, the winner is whichever player with the most "threes in a row".
a Calculate the number of possible boards, without regard for the rules of tictactoe. For example we'll include boards with Xs and Os even though no such board could occur in an actual game.
b In write a perfect minimal hash function hash that maps each board to a unique value between and provided tableSize where is your value from Part a
unsigned int hashchar board unsigned int tableSize;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
