{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Difficulty - @SuppressWarnings"unused" public int...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
package sjm; /** * Project Simple Java Minesweeper * @author Laurens Van Keer | www.LaVaKe.be * @version 1.1 */ public enum Difficulty { p EASY { E /** * Returns the number of mines. * * @return The Integer 8. | result == 8 */ @SuppressWarnings("unused") public int getNumberOfMines() { return 8; } /** * Returns the timelimit in seconds. * * @return The Integer 180. | result == 180 */ @SuppressWarnings("unused") public int getTimelimit() { return 180; } /** * Returns the String "Easy". * * @return The String "Easy". | result.equals("Easy") */ public String toString() { return "Easy"; } }, NORMAL { N /** * Returns the number of mines. * * @return The Integer 16. | result == 16 */ @SuppressWarnings("unused") public int getNumberOfMines() { return 16; } /** * Returns the timelimit in seconds.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
* * @return The Integer 120. | result == 120
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: */ @SuppressWarnings("unused") public int getTimelimit() { return 120; } /** * Returns the String "Normal". * * @return The String "Normal". | result.equals("Normal") */ public String toString() { return "Normal"; } }, HARD { H /** * Returns the number of mines. * * @return The Integer 24. | result == 24 */ @SuppressWarnings("unused") public int getNumberOfMines() { return 24; } /** * Returns the timelimit in seconds. * * @return The Integer 80. | result == 80 */ @SuppressWarnings("unused") public int getTimelimit() { return 80; } /** * Returns the String "Hard". * * @return The String "Hard". | result.equals("Hard") */ public String toString() { return "Hard"; } }; } abstract int getNumberOfMines(); abstract int getTimelimit(); a }...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern