CodeGym/Java Tasks/Minesweeper (Part 1/16)

Minesweeper (Part 1/16)

  • 3
  • Locked
Minesweeper (Part 1/16)
You can't complete this task, because you're not signed in.
Comments (39)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Haziq
Level 3 , Malaysia
6 March 2024, 18:30
package com.codegym.games.minesweeper;
import com.codegym.engine.cell.*;

public class MinesweeperGame extends Game {

}
mohammed nouri
Level 17 , Morocco
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 } }
Anonymous #11353394
Level 6 , Reston, United States
11 July 2023, 19:26
Here's info on inheriting in java. https://www.w3schools.com/java/java_inheritance.asp
danozzoX Java Developer
4 July 2023, 10:27
Does it work for you?
Luca Menger
Level 0 , Germany
23 March 2023, 08:52
ching chang honki
Hoist
Level 38 , San Diego, United States
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
Kidus Kidane
Level 1 , Canada
21 February 2023, 19:12
hello
PRINCE ADEWOYIN LOVE of Ile-Ife kingdom Enterprise Java Developer
28 October 2022, 10:50
how do i import the game engine
Sidak Gujral
Level 2 , India, India
30 September 2022, 08:53
will somebody help me with this problem i have being seen a bit trouble while solving this problem
Anonymous #11081308
Level 3 , Phoenix, United States
21 September 2022, 19:40
How do I import game engine? I have MacBook Air.