"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 This is done through the following lines of code. Next, in the normal clicking part of the if statement, we need to test whether the zone contains a mine, using the state property - if its true, then its game over. 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 Click on the test zone several times with your shift key pressed.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).new game button, game over modes, different sizes and densities available.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 |