Project

Bulls and Cows

Challenging
3278 completions
~ 17 hours
4.0

Learn how to use integer arithmetic, generate random numbers, store data in data structures, and handle errors.

Provided by

JetBrains Academy JetBrains Academy

About

Write your own advanced version of the classic code breaking game "Bulls and Cows". Start with recreating the original version of the game and then take it to a new level.

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:
Implement the grading mechanism.
Create a simple random number generator.
Make a fully functional classic version of the game.
Rewrite the random number generator using the built-in java tools.
Make the game more difficult by improving the code generator.
Make your application more stable by handling various errors.

Reviews

Tibor Thurnay avatar
Tibor Thurnay
3 weeks ago
a little bit more about errors and exceptions and that guessing 4 bulls is quite hard...
Danylo Dominchen avatar
Danylo Dominchen
2 months ago
The project was interesting, I learned a lot of new things and deepened my knowledge.
Trayana Boykova
2 months ago
This Bulls & Cows project is a solid, tiered challenge that made me practice many core Java skills: from simple string I/O and control flow, all the way to random generation, unique symbol logic, and robust error handling. The staged structure (7 levels) helps build step by step without being ov ...

4.0

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