Project
Minesweeper (Kotlin)
Medium
1591 completions
~ 15 hours
4.2This project will teach you how to work with lists in Kotlin. You will be dealing with algorithms for generating the minefield and processing the player moves.
Provided by
JetBrains Academy
About
They say a minesweeper makes only two mistakes in their life: the first is their choice of occupation, and the second one is fatal. In this project, you will create your own, safe "Minesweeper" – a game that will be a brain teaser for both you and your players.
Graduate project
This project covers the core topics of the Kotlin Core 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:
Generate your first game field with mines!
Let the user enter the number of mines in the game field.
Check how many mines are around.
Implement the rules of the game.
Be a real sapper. Find all the mines.
Reviews
ML
Marc Lachance3 days ago
Using classes makes the code easier to read and maintain, and this would be almost impossible to solve without using recursive functions.
This was a fun project, and I found myself doing parts of stages 2 and 3 during stage 1 because it seemed like things were incomplete and would need to be addressed later. Blew up the stack once with a bad check for bottoming out of a recursive search. Still getting a feel for when to use repeat on ...
4.2
Learners who completed this project within the Kotlin Core course rated it as follows: