Find Jobs
Hire Freelancers

Simple python project

$10-30 USD

クローズ
投稿日: 約6年前

$10-30 USD

完了時にお支払い
Create a simple python tic tac toe game. Must have 2 modes, 2 player, or 1 player mode that plays against a computer Using the model for ticket-tac-toe, create a complete tic-tac-toe game. The game should be able to determine if there is a winner and display who the winner is X or O. The game should have 1 player and two player mode. 2 player mode you would take turns with a friend. 1 player mode the computer would automatically select a free space. The game should only allow the user to select a free space for their move. After the game has finished and reported a winner the program should ask if the user would like to play again. - 1 or 2 player mode for tic-tac-toe game - error check space entered - display the winner at the end of each game - ask users to play again - the model for the tic-tac-toe board should be a dictionary that was defined in chapter 5 - only allow users to move to a space that is not occupied and is valid Sample game play: 1 player or 2 player mode? (1 or 2) 1 | | -+-+- | | -+-+- | | Turn for X. Move on which space? top-L X| | -+-+- | | -+-+- | | Turn for O. Bleep Blorp I'm a comptuter. X|O| -+-+- | | -+-+- | | Turn for X. Move on which space? . . . Turn for X. Move on which space? low-R X|O| -+-+- |X| -+-+- O| |X X won. Do you want to play again? y or n y 1 player or 2 player mode? (1 or 2) Beginning Code Should Be : theBoard = {'top-L': ' ', 'top-M': ' ', 'top-R': ' ', 'mid-L': ' ', 'mid-M': ' ', 'mid-R': ' ', 'low-L': ' ', 'low-M': ' ', 'low-R': ' '} def printBoard(board): print(board['top-L'] + '|' + board['top-M'] + '|' + board['top-R']) print('-+-+-') print(board['mid-L'] + '|' + board['mid-M'] + '|' + board['mid-R']) print('-+-+-') print(board['low-L'] + '|' + board['low-M'] + '|' + board['low-R']) turn = 'X' for i in range(9): printBoard(theBoard) print('Turn for ' + turn + '. Move on which space?') move = input() theBoard[move] = turn if turn == 'X': turn = 'O' else: turn = 'X' printBoard(theBoard)
プロジェクト ID: 16528319

プロジェクトについて

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

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に23人のフリーランサーが、平均$28 USDで入札しています
ユーザーアバター
Hi... I am a Python specialist, certified by Freelancer. I fully understand your project and I am sure I can help you. Let's discuss details by chat :) Add My WhatsApp -> +584265960160 Or my Telegram -> @ejdecena
$30 USD 1日以内
5.0 (101 レビュー)
6.7
6.7
ユーザーアバター
A proposal has not yet been provided
$30 USD 1日以内
5.0 (64 レビュー)
6.1
6.1
ユーザーアバター
Hello, How many I help you with this project. Please contact me as soon as possible for details of the project.
$50 USD 3日以内
4.5 (51 レビュー)
6.1
6.1
ユーザーアバター
I can provide you with the game in less the one day, so feel free to contact me :)
$20 USD 1日以内
5.0 (6 レビュー)
4.8
4.8
ユーザーアバター
Hi there, I went through the requirements and I would like to do this project if given the opportunity. I do python programming and have done tic-tac-toe related projects before. Let me know if you are interested so I can have further details.
$30 USD 1日以内
4.9 (39 レビュー)
4.8
4.8
ユーザーアバター
Sound like a fun project, I can get this done within a day. I suggest also adding a difficulty setting for the AI since tic tac toe can be the type of game that can lead to a bunch of stalemates if the AI is too aggressive.
$55 USD 1日以内
5.0 (1 レビュー)
2.4
2.4
ユーザーアバター
A proposal has not yet been provided
$25 USD 2日以内
5.0 (1 レビュー)
1.8
1.8
ユーザーアバター
I'll get it done. No worries. Just contact me and give me the details. Regards.
$25 USD 2日以内
4.9 (2 レビュー)
1.1
1.1
ユーザーアバター
A proposal has not yet been provided
$20 USD 3日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
I already have this done for you in python, I just need to finish the logic to play against the computer.
$35 USD 10日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
A proposal has not yet been provided
$15 USD 1日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
Hello, I'm new to freelance, I made other small projects, but only for me, and I want to start doing jobs so that other people get a better reputation. I can solve any question you have. PS: I speak Spanish, I'm sorry for my English.
$20 USD 2日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
Not going to lie I have done this something very similar to this code before I can have it done fore you in a couple of hours not even. All I have to do is change somethings to match your exact needs and it will be done.
$20 USD 0日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
Hi, Which python-version do you need this to be done in? If I understand correctly the players should type out 'top-L' etc and enter with 'enter'. Till when do you need this task to be done? Greetings from Germany, Willy ################################################################################################################################################
$20 USD 10日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
I already have almost the same code in python. I did it in some moment during my undergraduate studies. So this will be done quickly. Best regards!
$14 USD 1日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
A proposal has not yet been provided
$27 USD 1日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
A proposal has not yet been provided
$10 USD 1日以内
0.0 (0 レビュー)
0.0
0.0

クライアントについて

UNITED STATESのフラグ
United States
0.0
0
メンバー登録日:3月 20, 2018

クライアント確認

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