Find Jobs
Hire Freelancers

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

₹700-1500 INR

クローズ
投稿日: 3年近く前

₹700-1500 INR

完了時にお支払い
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: 30954836

プロジェクトについて

2個の提案
リモートプロジェクト
アクティブ 3年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に2人のフリーランサーが、平均₹1,200 INRで入札しています
ユーザーアバター
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 1日以内
5.0 (1 レビュー)
0.6
0.6

クライアントについて

INDIAのフラグ
Salem, India
0.0
0
メンバー登録日:7月 26, 2021

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。