Find Jobs
Hire Freelancers

BattleShips with Python

$30-250 USD

已完成
已发布超过 10 年前

$30-250 USD

货到付款
Battleships is a 2 players, 10x10 table based war game in which every player tries to shoot one another's ship. Each player has the following setup: - 1 Flagship (battle cruiser) takes up 5x rooms) - 1 Minelayer ( takes up 2x rooms) - 1 Destroyer ( takes up 4x rooms) - 1 Frigate (takes up 3x rooms ) - 1 Submarine (takes up 3x rooms) After each shot, shooting spot can be denoted by 2 different symbols 'X' and '*' (star). The symbol "X" represents "miss", while "*" represents successful hit. If the hit is successful, the player will keep shooting until he misses. When a shot is missed, other player takes the turn. Game goes on until the one of the opponents has lost all of their ships. It is not allowed to shoot at the same point twice, and it is also forbidden to change the spots of the ships during shooting. The program will: 1. Place the ships that mentioned above, randomly on 10x10 matrix. 2. Coordinates of the ships must be unique, they should not collide. 3. User guesses must be in numbers between 1-10 and letters between A-J - Enter your guess: 3A - Enter your guess: 8L Error: Invalid coordinates 4. If a ship gets hit, the program should output a message stating that a ship is hit or sunk. (ie. Submarine is hit, frigate is sunk etc) 5. Program should report to user after each shooting. 6. Program should terminate if the 'q' is pressed. 7. Program should report if the 'r' is pressed. Sample report: - You have made 22 shooting attempts. - 1 Flagship ( + + + + + ) - 1 Minelayer ( + + ) - 1 Destroyer ( + + - - ) casualty - 1 Frigate ( + - - ) casualty - 1 Submarine ( - - - ) sunk Sample run: Enter your guess: 3B [3B] Iska A B C D E F G H I J 1 O O O O O O O O O O 2 O O O O O O O O O O 3 O X O O O O O O O O 4 O O O O O O O O O O 5 O O O O O O O O O O 6 O O O O O O O O O O 7 O O O O O O O O O O 8 O O O O O O O O O O 9 O O O O O O O O O O 10 O O O O O O O O O O Enter your guess: 4E [4E] Destroyer is hit A B C D E F G H I J 1 O O O O O O O O O O 2 O O O O O O O O O O 3 O X O O O O O O O O 4 O O O * O O O O O O 5 O O O O O O O O O O 6 O O O O O O O O O O 7 O O O O O O O O O O 8 O O O O O O O O O O 9 O O O O O O O O O O 10O O O O O O O O O O Enter your guess ? 4F [4F]Destroyer is hit A B C D E F G H I J 1 O O O O O O O O O O 2 O O O O O O O O O O 3 O X O O O O O O O O 4 O O O * * O O O O O 5 O O O O O O O O O O 6 O O O O O O O O O O 7 O O O O O O O O O O 8 O O O O O O O O O O 9 O O O O O O O O O O 10O O O O O O O O O O Enter your guess ? 4F You have made that move before. Please make another move. Enter your guess ? Deadline for the job is: 15th of January , 18:00 (GMT + 4) Kind regards, Jeremy
项目 ID: 5314620

关于此项目

6提案
远程项目
活跃10 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hello, I've written a C code for battleship game while I was in my freshman year, and it was a human-vs-computer game. So I am totally clear about the game logic, and I can guarantee to fulfil each of the requirements. If hired, I can provide it done in 24 hours or less. I am ready to start immediately, so I can perfectly finish this well before the deadline. Thanks, Sufian Latif
$88 USD 在1天之内
0.0 (0条评论)
2.8
2.8
6威客以平均价$118 USD来参与此工作竞价
用户头像
A proposal has not yet been provided
$100 USD 在1天之内
5.0 (12条评论)
4.2
4.2
用户头像
Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my Python and algorithm skills. I am focused mostly on doing computer science homework here in freelancer.com and I would like to help you get this project done if you would give me the opportunity. I am a computer science professor and practitioner and this assignment is one of the fields that I teach very well so I can assure you an accurate result.
$30 USD 在1天之内
5.0 (4条评论)
2.9
2.9
用户头像
HI Contact me for an efficient, well documented and perfect solution and development of your project. I ensure quality work with always on time delivery of project and dedicated support and follow up. Thanks Farah Saif
$75 USD 在1天之内
5.0 (1条评论)
2.0
2.0
用户头像
Add My Skype id--lalagal4 please add more discuss hire me----https://www.freelancer.com/u/ARIS11.html Honey Sir, We would pair to get this possibleness of working with you. We can indorse that you gift not rue your mind if you superior us to fulfill this cast.
$30 USD 在2天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hi ! I can make that game for you till 15.01.14. please contact me :) I am crazy about making every kind of games.
$133 USD 在2天之内
0.0 (0条评论)
0.0
0.0

关于客户

TURKEY的国旗
Istanbul, Turkey
5.0
1
会员自1月 13, 2014起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。