minesweeper.You can continue digging until either you hit a bomb (which is game over) or you’ve successfully dug up all n-b non-bomb locations (which is victory)! Your bot must not throw any exceptions, or it will die with score 0 (no invalid arguments will be given to your. Bots go in /src/programmedbots, and must extend bot.MineBot. I will be updating this every so often to save you some typing. The game “digs” recursively around that location if there are no bombs nearby. Change the source code in src/game/Game.java so that String botnames contains the name of all of the bots. In order to “dig” at a certain location, you type in the index of the row, then the column, separated by a comma (whitespace optional). Remember the classic Minesweeper on your windows desktop, now play the remade with vibrant graphics and a save progress feature. Note that the inputs must be that the number of bombs is less than the total number of spaces (n^2).įor now, this script does not have a GUI and you can use terminal □ (If you want to make a GUI, feel free to make a pull request) ![]() ![]() (If you do not edit the parameters in the script, the script will automatically initialize it to a 10×10 board, with 10 bombs)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |