Find Jobs
Hire Freelancers

Battleship Strategy

$10-30 CAD

Completed
Posted almost 4 years ago

$10-30 CAD

Paid on delivery
You are to write a program that will play a limited game of battleshipwhere you attempt to sink all of the ships with a minimum number of shots. The game of battleship is typically played with two players, each of which place 5 ships of various sizes on a 10 x 10 grid. Each player on a turn by turn basis attempts to place a shot where the opponent has placed a ship. Of course, your opponent can not see where you have placed your ships and you cannot see where the opponent has placed their ships. You typically call out shots to try and find and sink each of your ships. The player that can sink all of the opponent ships first is the winner. For a more complete description see Battleship. The following video ([login to view URL]) is a great resource for everyone. It covers an introduction on how to play the game and many strategies for playing the game. In this instance of Battle Ship the computer will randomly place 5 ships (lengths 2,3,3,4,5) on the board. A total of 17 spaces on the board out of 100 will have a ship. Once you obtain 17 hits you have solved the game. Your goal is to achieve the lowest average number of shots to do this. There are many different strategies to solve this problem. Please note, this is not a full implementation of the game. The computer will not be firing on you. It is up to you to come up with an algorithm to find the computer’s ships in the least number of shots.
Project ID: 24631650

About the project

10 proposals
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I am very good at programming, and have won several programming competitions and hackathons held at my college. My programming skills can be easily verified from my profiles at the following competitive coding sites: HackerEarth - [login to view URL]@mnprtpsingh CodeChef - [login to view URL] CodeForces - [login to view URL] Although most of my programs in these programming sites are in C++ or Python. I have good experience in Java too and I have done some quality Android projects in Java as can be seen in my github profile ([login to view URL]). I have played the battleship game a lot and I completely understand the problem at hand. And because of my good problem solving and implementation skills, I am very comfortable with the project. Moreover, I have already worked with NetBeans and have it setup on my system. I already went through the video description as well as the code attachment, and know precisely the steps that will be required to solve the problem to get the total average shots taken to be less than 40. I have all the skills required and will give my 100% efforts to ensure to deliver the project in time. Please give me an opportuninty to help you on this project.
$16 CAD in 1 day
0.0 (0 reviews)
0.0
0.0
10 freelancers are bidding on average $59 CAD for this job
User Avatar
Hi I have done many java programming projects. Kindly contact to discuss more details about your project in chat. Thank you
$300 CAD in 7 days
5.0 (68 reviews)
6.1
6.1
User Avatar
Hello Sir/Madam CodingHelpLine assists in various programming languages including Java Technologies, C#, C/C++, PHP, Node, Android, Python, JavaScript, Scala, Vb.Net, XML and various frameworks. I can help implement awesome desktop (Java, Python, C#, Vb.net, C++), Web (JEE, Spring, Php, Python, Asp.net) and Android (Java, Kotlin) application. Contact me with details to get started. Send details to get started. Rest assured you will have quality solution based on your project requirements. Thanks @CodingHelpLine
$100 CAD in 3 days
4.9 (3 reviews)
2.1
2.1
User Avatar
I can implement a good playing engine for battleship, combining a greedy strategy for attempting to sink a found ship (when a hit is found) with some probabilistic/random guesses during the search of a ship. I can do it with good code quality, including appropriate comments for the developed classes and methods, good design decisions, etc. Let me know if you feel I can help.
$35 CAD in 7 days
5.0 (4 reviews)
1.9
1.9
User Avatar
Hello, I have 9+ years of experience in writing SDK, products, and algorithms for data-intensive use-cases. I have written such lab-practice codes several dozen times - and will be able to provide u a well-documented code. Happy to assist you. Wish you a safe and happy weekend. regards Siddharth
$20 CAD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
hi i have been programming in java from around 3 years now. I have knowlwdge of the DS and algo i have been doing the competitive programming on varous website from a couple of days now. I think i can solve your problem with the best time and space complexity. Hoping to work thank you
$20 CAD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I'm good at algorithms. I have participated in many computer olympics. Now I have a lot of free time and I wanted to explore this platform a bit.
$26 CAD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I am proficient in java programming. Have five plus years experience in java programming. Can work fast and under pressure. Have created a battle ship program before.
$20 CAD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I have more than 10+ years of experience in Java technologies and have a good understanding of Algorithms and optimization. we could discuss the algorithm if needed before starting the implementation.
$25 CAD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I have been working on Java for three years now and have built battleship game multiple times for my client and if you need to see my work I can show you too, inbox me if you want the game. I can also deliver it to you sooner that 2 days.
$30 CAD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
Hamilton, Canada
5.0
1
Payment method verified
Member since Feb 20, 2020

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.