Programming Minesweeper Game in Java, Tutorial

preview_player
Показать описание
Check also my Java game development playlist.
If you like the video, I'm happy about a Like :)

╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

Music:

#java #minesweeper
Рекомендации по теме
Комментарии
Автор

It was really fun to watch the video..
keep growing, , Wishes from India❤❤❤

abhijitbaral
Автор

feel dumb, as a cs student i feel like i should be able to do this without help but amd really stuck on the pieces needed to make it, any ideas on how to to improve if this is too overwhelming for me

omarsmith
Автор

Hello, I have a problem to understand your code at the following passage:

paint component... if (! inGame) ... elseif(cell > COVERED_MINE_CELL) {cell =DRAW_WRONG_MARK}

COVERED_MINE_CELL is per definition MineCell + CoverForCell= 19. How can the cell value be larger than 19 ???

Nice greetings from Germany.

alexandereisener
Автор

mine was only showing the frame, the images is not showing

elixrviliociar
Автор

Hey gaspar, need some help.
For
for (int i = 0; i < NUM_IMAGES; i++) {
var path = "src/resources/" + i + ".png";
img[i] = (new ImageIcon(path)).getImage();
}
the images are not loading, and all I get from the JFrame is 40 on the bottom left. I have the resources folder with the images.

I would greatly appreciate it if you could help me out.

pritisinghvi