Đã Đóng

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.

gameLoop:

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

else

2. check if computer can block player "X" from winning

else

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

Etc.

Kĩ năng: Lập trình C, x86/x64 Assembler, Lắp ráp, Lập trình C++, Java

Xem nhiều hơn: 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

Về Bên Thuê:
( 31 nhận xét ) Dallas, United States

ID dự án: #30954769

7 freelancer chào giá trung bình$34 cho công việc này

SUog

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

$50 USD trong 2 ngày
(154 Nhận xét)
6.3
nourreddinebenme

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 trong 1 ngày
(143 Nhận xét)
6.2
omer19

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 Thêm

$30 USD trong 5 ngày
(2 Nhận xét)
2.6
yanghwang708

!!! 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. Thêm

$10 USD trong 7 ngày
(2 Nhận xét)
1.8
aemgborgess

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 trong 1 ngày
(1 Nhận xét)
1.2
YeliseevnDev

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 trong 1 ngày
(1 Nhận xét)
0.0
fouzanasif

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 Thêm

$25 USD trong 2 ngày
(0 Nhận xét)
0.0