Using the flat assembler (fasm), write a program that plays tic-tac-toe against the computer. Below is a sample game loop. It assumes the player is X and computer is O with the player making the first move.
cinvoke printf, "Your move (1-9)? "
cinvoke scanf, "%d", Square
For the computerMove, you could simply place an O in the first available square, select a random square, or do these steps:
1. check if computer "O" can win
2. check if computer can block player "X" from winning
3. select a random square to move into
Welcome to x86 Assembly Tic-tac-toe!
You will be X's and the computer will be O's.
The squares are number 1 - 9 starting with the top left.
Your move (1-9)? 5
| | O
| X |
Your move (1-9)? 1
X | | O
| X |
| | O
7 freelanceria on tarjonnut keskimäärin $34 tähän työhön
hello sir i can do your project using fasm under linux when i complete it you can check and then you can accept my bid feel free to message me :)
Hello,dear I'm a senior game developer and assembly expert. I can complete this project perfectly. Let's contact and discuss with me. Best regards in.