Minesweeper (Part 1/16)
Minesweeper (Part 1/16)
- 3
Locked
Comments (39)
- Popular
- New
- Old
You must be signed in to leave a comment
Haziq
6 March 2024, 18:30
+7
mohammed nouri
25 January 2024, 21:45
import com.codegym.engine.cell.*;
public class MinesweeperGame extends Game {
// Add your class variables here
@Override
public void initialize() {
// Add your initialization code here
}
private void createGame() {
// Add code to create the Minesweeper game
}
private void drawScene() {
// Add code to draw the game scene
}
private void openTile(int x, int y) {
// Add code to handle opening a tile
}
private void markTile(int x, int y) {
// Add code to handle marking a tile
}
private void gameOver() {
// Add code to handle game over
}
private void win() {
// Add code to handle winning the game
}
@Override
public void onMouseLeftClick(int x, int y) {
// Add code to handle left mouse click
}
@Override
public void onMouseRightClick(int x, int y) {
// Add code to handle right mouse click
}
}
+3
Anonymous #11353394
11 July 2023, 19:26
Here's info on inheriting in java.
https://www.w3schools.com/java/java_inheritance.asp
+3
danozzoX Java Developer
4 July 2023, 10:27
Does it work for you?
+2
Luca Menger
23 March 2023, 08:52
ching chang honki
+4
Hoist
26 February 2023, 08:56
Runs fine now. Finicky to when there was an error.
I fixed a typo and had to erase both the 1) basic cg IDE code and also 2) reset IntelliJ code to get success.
Suggest you read thru some of the Help discussions -- you will see that the keyword *extends* is Class inheritance ( reusing some code ) -- in this case it's less obvious since the superclass or parent Class is hidden inside the package file that's imported
-- right mouse click on the Class Tree tab over to the right to enter the Class file name into the user interface box -- it will load your code up
+6
Kidus Kidane
21 February 2023, 19:12
hello
+4
PRINCE ADEWOYIN LOVE of Ile-Ife kingdom Enterprise Java Developer
28 October 2022, 10:50
how do i import the game engine
+5
Sidak Gujral
30 September 2022, 08:53
will somebody help me with this problem i have being seen a bit trouble while solving this problem
+9
Anonymous #11081308
21 September 2022, 19:40
How do I import game engine? I have MacBook Air.
+5