It may be possible to create an interactive, GUI version of the game for the JHS front end.Your goal in this project will be to build an AI that can play Minesweeper. In many implementations of the game, including the one in this project, the player can flag a mine by right-clicking on a cell (or two-finger clicking, depending on the computer). When the player loses, display the mine that was cleared differently to other mines in the revealed map The goal of the game is to flag (i.e., identify) each of the mines.Record "high" scores for various sized minefields.Display a timer that counts the length of time required to solve the field.Make the minefield image resize to fit the current size of the window Minesweeper game is a classic board game that is aesthetically similar to tic-tac-toe and it is simple enough to be possible for a beginner like me to build.Create a child dialog for the Game|Options menu item, that among other things could enable the user to changing the size/difficulty of the minefield.It then seemed to be a nice simple application that might serve as a type of Rosetta stone itself, showing how to translate a GUI from the J6 window driver (wd) toolset to the new J7 Gtk toolset.Īs J tools and APIs for working with Gtk evolve, the Gtk scripts should hopefully get shorter and less complex. The engine for this game began as a solution to a RosettaCode programming task. Obviously you can only run some scripts in a compatible environment, so the uiwd.ijs script can currently only be run using J6, and the gui/gtk based scripts will only run in J7. Use Package Manager to install the games/minesweeper addon.īelow are some examples of running various UI versions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |