Build a program using [login to view URL] to write a tic-tac-toe program . Description below.

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.


call printBoard

cinvoke printf, "Your move (1-9)? "

cinvoke scanf, "%d", Square

call placeX

call checkXWin

call checkForDraw

call computerMove

call checkOWin

jmp gameLoop

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

Example output

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


Kemahiran: Pengaturcaraan C, x86/x64 Assembler, Pemasangan, Pengaturcaraan C++, Java

Lihat lagi: create tic tac toe using turbo documentation, tic tac toe using ajax php mysql, tic tac toe java program, tic tac toe using jframe, tic tac toe code using jframe, using solve tic tac toe, using genetic programming solve tic tac toe, tic tac toe using assembly language, client server tic tac toe java program code, write tic tac toe small basic, tic tac toe source code using class, tic tac toe java code using 2d array, tic tac toe c++ program against computer, tic tac toe c program against computer, tic tac toe c++ code using classes, tic tac toe gaming application using c++ programming, tic tac toe in python using lists, tic tac toe in c++ using functions

Tentang Majikan:
( 31 ulasan ) Dallas, United States

ID Projek: #30954769

7 pekerja bebas membida secara purata $34 untuk pekerjaan ini


Hello, I can write the program you requested. Please contact me to discuss details. Thank you

$50 USD dalam 2 hari
(154 Ulasan)

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 :)

$50 USD dalam sehari
(143 Ulasan)

hello, I have seen that you need an experienced C++ expert for . I am a professional C++ expert with more than 10 years experience. I have carefully understood your project requirements am sure that, I can do your Lagi

$30 USD dalam 5 hari
(2 Ulasan)

!!! Hi, I'm Jin !!! I know your project has been closed now. Please ping me, I'm waiting for you. I have read your all description carefully and I understand your requirement. So I think I can deliver you good result. Lagi

$10 USD dalam 7 hari
(2 Ulasan)

Hello i can handle this type of job for [login to view URL] free to message me. i will do my best in job for sure

$25 USD dalam sehari
(1 Ulasan)

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.

$50 USD dalam sehari
(1 Ulasan)

Special greetings to you dearest person. To me, this appears as a simple task as I have worked a lot in x86 Assembly language. I’m aware about how the task has to be done. I have the logic, just need to code it, may ta Lagi

$25 USD dalam 2 hari
(0 Ulasan)