Project

Battleship with Java

Challenging
631 completions
~ 21 hours
4.3

Develop your own version of the popular "Battleship Game" to play with your friends!

Provided by

JetBrains Academy JetBrains Academy

About

Writing games is probably one of the most exciting tasks in programming. While creating your first console game, you will learn about processing user input and handling errors. You will practice concepts frequently tested in technical interviews at top tech companies.

Graduate project icon

Graduate project

This project covers the core topics of the Introduction to Java course, making it sufficiently challenging to be a proud addition to your portfolio.

At least one graduate project is required to complete the course.

What you'll learn

Once you choose a project, we'll provide you with a study plan that includes all the necessary topics from your course to get it built. Here’s what awaits you:
Place and arrange all the ships on the game field.
Try shelling your own ships to test the new guns.
Arrange your ships, hide them behind the fog of war, and fire at a random position.
Denote the conditions for the end of the game.
Make your game more interesting by adding another player with their own field.

Reviews

Martin Pakhomov avatar
Martin Pakhomov
10 hours ago
I learned how to work with arrays, methods, classes, loops, and user input in Java. I also practiced validating input, handling errors, and organizing a larger program into smaller methods. The most difficult part was implementing ship placement rules and the multiplayer game logic, but I learned ho ...
Alejo Saez Gebicki avatar
Alejo Saez Gebicki
2 days ago
Podés escribir algo breve y relacionado con lo que trabajaste en el proyecto de Battleship: > During this project, I strengthened my Java and object-oriented programming skills. I practiced working with arrays, methods, classes, inheritance, exceptions, and code organization. One of the main cha ...
GUSTAVO ALONSO PE?ARANDA CABRERA avatar
GUSTAVO ALONSO PE?ARANDA CABRERA
6 days ago
With this project I was able to really practice the basics of OOP

4.3

Learners who completed this project within the Introduction to Java course rated it as follows:
Usefulness
4.5
Fun
4.3
Clarity
4.2