Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Code Minesweeper in Java
Play lesson

Java Game Programming Tutorials - Code Minesweeper in Java

4.0 (2)
23 learners

What you'll learn

This course includes

  • 9.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

How to code a Minesweeper game in Java for beginners! Learn how to create a game of Minesweeper in Java using the awt and swing graphics library. In this tutorial, you will learn how to make the classic game, minesweeper! You will learn how to create a graphical user interface (GUI) to display 8x8 grid of tiles. You will also learn to add click handlers to select a tile. With a left click, you will learn to open a tile, detect if the tile contains a mine, count the number of mines surround the tile, and recursively check neighboring tiles to count the number of mines surround those tiles. With a right click, you will learn to place and remove flags on a tile. After understanding the core game logic, you will learn how to generate levels by placing mines in random tiles. Setup Java with Visual Studio Code: https://youtu.be/BB0gZFpukJU Mine: 💣 Flag: đŸš© Code: https://github.com/ImKennyYip/minesweeper-java Website: https://www.kennyyipcoding.com/ Java Game Programming Projects Playlist: https://www.youtube.com/playlist?list=PLnKe36F30Y4Y1XQOqNsL9Fgg_p6nYhcng JavaScript Game Programming Projects Playlist: https://www.youtube.com/playlist?list=PLnKe36F30Y4bLhA-st9sC4ZthyV7nsL2Q Subscribe for more coding tutorials 😄! ⭐ If you enjoyed the tutorial and would like to support the channel, you can do so here 💖: https://buymeacoffee.com/kennyyipcoding

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere