![]() ![]() A 2 with 3 mines, and also a 1 with 3 marked mines. Another area is the one surrounding the C (which represents Safe to Click) is very messy. The fact of the matter is that 8-12 is a mine and 8-13 is not a mine. If you look at 8-12 & 8-13 (remember, treating these as arrays (starting at 0)) it states that both of them are "defiantly" mines. #Print out the gameboard with the safe and hot spots marked ![]() If int(val)/blank <= 0: #0% chance of a mine being present. If int(val)/blank = 1: #100% chance of a mine being present. #Already a mine present subtract one from the value to compensate #We dont want to analize anything but a number #There are currently no (known) blank blocks #Now get a 3x3 grid using the 5x5 grid as the starting point #Symbolize the area we are working on with an X #Make sure the block is one that we are unsure of. #Get a 5x5 grid with x,y as the center point So what i have so far is 2 variables (or rather after some calculations the two variables): I'm currently out of projects and started to play minesweeper I then thought that i could entertain myself by making a program to solve the game. So its one of those lazy Thursday evenings and i have all the time in the world to waste away on pointless tasks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |