diamante0018 / minesweeperfx Goto Github PK
View Code? Open in Web Editor NEWThe Minesweeper game with JavaFX
License: GNU General Public License v3.0
The Minesweeper game with JavaFX
License: GNU General Public License v3.0
So the GUI has a MenuBar witch contains 2 options for different difficulties. The third one doesn't work for some reason Each time the user changes difficulty everything is set to new and the scene gets updated with the new GRID. The GUI is kept up to date with a refresh method which goes through the whole minefield object and if a mine has been reveled the Button text gets updated to the number of mined neighbours, after it checks if everything was revealed/flagged and if so the winning dialog pops up. The data is fecthed from the 'old' Minefield object simply by having the buttons coordinates match with the tiles on the field. Each interaction with the GUI (Left/Right Click) will correspond to an alteration to the original Minefield object. The user can left/right click a tile. Left click will trigger the step method, if you step on a tile a defeat dialog pops up asking for a new game or quit. Right click will place a flag img ontop on the button to mark a tile (must flag every mine tile to win). Incorrectly placed flags can be removed with another right click. Each button as an inner EventHandler to handle the left/right click event There's a boolean 2D array to keep track of which button has a flag img and need to be removed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.