![]() GridOutline = graphics.Rectangle(graphics.Point(5, 5), graphics.Point(545, 545)) Win = graphics.GraphWin("Minesweeper", 545, 570) # and 30px at the bottom to make room for info messages / user interaction. # Each square is 60px x 60px, there is 5px of padding along sides and top, I am attaching all of the code below, however, it is not completed and is currently just in fragments. This is the code, which I have nested in the main function that creates the dictionary, and prints it out after the graphics window to make sure it is updating properly. ![]() I have the squares labeled as a1, a2, a3., b1, b2, b3., etc. I was able to create the dictionary but am struggling with how to place the bombs. My professor recommended that I randomly layout 10 bombs on the game's 9x9 grid. I am making a copy of Minesweeper for a project in my class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |