![]() Following is the implementation of Minesweeper. Methods to handle each event of the game. MyBoard (back-end to configure number counts of each cell, etc. Real Board(buttons for the user to click). Or, is there a better way to do the same task? In this case they set the value of the tiles. In createContent (), you already have nested for loops, one for x and one for y, that cover the entire board. Based on what you've already achieved, it should be well within your ability to reveal all the tiles. Yes, no frameworks or library is to be used, well develop the game using Vanilla JS only. 1 Answer Sorted by: 0 You haven't explained exactly what problem you're having. This is how it will look: Tech stack: The tech stack that will be used is: HTML. Simple unoptimized javaFX 2d game with random generated world just for example. A Minesweeper game written in Java using the JavaFX client platform. In the context that, to make an already clicked cell unclickable again, I just disabled it. In this article, well learn how to build a basic minesweeper game using JavaScript. Note : I'm just in high school so please excuse any 'dumb' ways I may have coded certain segments.Īny tips or books on how to improve the general quality of the code, or any information that will help me become better are deeply appreciated.Īpart from feedback, I would also like to know how to preserve colours in buttons which I have disabled. ![]() I created a Java Swing Minesweeper, for which I would like some feedback.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |