Commits

César Bustíos committed cd4da7f

Margins correction. Always generate the initial board having all boxes unrevealed

Comments (0)

Files changed (1)

 BOARD_HEIGHT = (BOARD_ROWS * BOX_SIZE) + ((BOARD_ROWS - 1) * BOX_GAP)
 IMAGES_NEEDED = (BOARD_COLS * BOARD_ROWS) / 2
 HIGHLIGHT_WIDTH = 3
-X_MARGIN = int((WINDOW_WIDTH - (BOARD_COLS * (BOX_SIZE + BOX_GAP))) / 2)
-Y_MARGIN = int((WINDOW_HEIGHT - (BOARD_ROWS * (BOX_SIZE + BOX_GAP))) / 2)
+X_MARGIN = ((WINDOW_WIDTH - BOARD_WIDTH) / 2)
+Y_MARGIN = ((WINDOW_HEIGHT - BOARD_HEIGHT) / 2)
 OPTION_X_MARGIN = 75
 OPTION_Y_MARGIN = 30
 
 def main():
     pygame.display.set_caption('Geezle - Memory Puzzle')
 
-    board = generate_board(True)
+    board = generate_board(False)
     new_game = False
 
     # Number of moves
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.