Full Disclosure) I am a college student who is over his head in a digital electronics class. I am working on my final project in the class and am desperate for some help. The course uses MultiSim to design circuits and is at a beginner level.
I'll post the assignment in here and my take in the next post....
Assignment:
Digital Tic-Tac-Toe
If individual flip flops are used to represent the squares on the board, what type of logic is needed to detect wins and draws? How are Xs and Os represented by flip flops? How are the player turns sequenced? How are the flip flops that represent the squares changed during the game to represent Xs or Os? Your game logic should generate the following output signals based on the state of the board flip flops:
Output Signal
Meaning
XWINS
The flip flop pattern for X has been found in any row, column, or diagonal.
OWINS
The flip flop pattern for O has been found in any row, column, or diagonal.
DRAW
All board positions are filled, but neither XWINS nor OWINS is active.
XTURN
Active when it is Xs turn to place an X.
OTURN
Active when it is Os turn to place an O.
ILLEGAL
Active when either player tries to move into an occupied board position. Allow player to re-enter move.
For simplicity, X will always go first. Use 4 switches to represent the board position (0 to 8 or 1 to 9) where the next X or O will be placed. Another switch must be used to enter the board position chosen by the first 4 switches. Finally, a reset switch must be used to place all board flip flops and other logic into their initial states (to start a new game).
I'll post the assignment in here and my take in the next post....
Assignment:
Digital Tic-Tac-Toe
If individual flip flops are used to represent the squares on the board, what type of logic is needed to detect wins and draws? How are Xs and Os represented by flip flops? How are the player turns sequenced? How are the flip flops that represent the squares changed during the game to represent Xs or Os? Your game logic should generate the following output signals based on the state of the board flip flops:
Output Signal
Meaning
XWINS
The flip flop pattern for X has been found in any row, column, or diagonal.
OWINS
The flip flop pattern for O has been found in any row, column, or diagonal.
DRAW
All board positions are filled, but neither XWINS nor OWINS is active.
XTURN
Active when it is Xs turn to place an X.
OTURN
Active when it is Os turn to place an O.
ILLEGAL
Active when either player tries to move into an occupied board position. Allow player to re-enter move.
For simplicity, X will always go first. Use 4 switches to represent the board position (0 to 8 or 1 to 9) where the next X or O will be placed. Another switch must be used to enter the board position chosen by the first 4 switches. Finally, a reset switch must be used to place all board flip flops and other logic into their initial states (to start a new game).