![]() ![]() "File:HistoryIcon.svg" by Ludvig14 is licensed with CC BY-SA 3.0.CreditsĪll graphics (not including the JavaFX components) are made by me, except for the ‘7’ icon for the numbered cell, Rosé pictures on the new game button (which were sourced from Google), and the flag icon (credit below). The grids will not reveal and the command line where you write the program will display an error. I used recursion to implement Minesweeper which limits the possible dimension sizes due to stack overflow for large sizes (80-90+ rows and columns). The command you will put in will be: java -module-path \javafx\javafx-sdk-11.0.2\lib -add-modules ntrols,aphics -jar MinesweeperGUI.jar Notes on Implementation Type in this command: java -module-path path-to-javafx-lib -add-modules ntrols,aphics -jar MinesweeperGUI.jar (view footnote)Įxample: Let's say the path to your JavaFX lib file is: C:\javafx\javafx-sdk-11.0.2\lib.In your command line, go to the directory where you download the JAR file.Take note of the directory path where you install JavaFX, specifically the lib folder.Instructions on how to execute JAR file 1) You must have the following installed on your computer: only basic commands (reveal, flag, unflag).Game.java: Main Class of the game, handles input and output and a number of other things (I am not sure whether I should remove this class or not). Here's the code on Github (not commented though). new game button, game over modes, different sizes and densities available I made a Minesweeper game in Java 8, but I am not sure if the code is any good.layout similar to typical Minesweeper game.A simple JavaFX GUI of the Minesweeper game ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |