Find Jobs
Hire Freelancers

Using the flat assembler (fasm), write a program that plays tic-tac-toe against the computer

₹700-1500 INR

Mbyllur
Postuar over 2 years ago

₹700-1500 INR

Paguhet në dorëzim
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. {"mode":"full","isActive":false}
ID e Projektit: 30954836

Rreth projektit

2 propozime
Projekt në distancë
Aktive 3 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
2 freelancers are bidding on average ₹1 200 INR for this job
Avatari i Përdoruesit
Hi , I am an expert , I can do this work so perfectly , just let me do it . CONTACT ME PLEASE ! 100% satisfaction guarantee 100% satisfaction priority
₹1 100 INR në 1 ditë
5,0 (1 review)
0,6
0,6

Rreth klientit

Flamuri i INDIA
Salem, India
0,0
0
Anëtar që nga korr 26, 2021

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.