LaunchCode logo
  1. Contents
  2. 25. Build a Minesweeper Game

25. Build a Minesweeper GameΒΆ

  • 25.1. Introduction
    • 25.1.1. Project Setup
      • 25.1.1.1. Fork the Starter Code
      • 25.1.1.2. Create Your Local Project
  • 25.2. Database Setup
    • 25.2.1. Start With an Outline
    • 25.2.2. db_setup.py
    • 25.2.3. Video Summary
  • 25.3. Create the Home Page
    • 25.3.1. Review base.html
    • 25.3.2. Build index.html
    • 25.3.3. Video Summary
  • 25.4. Create the Game Page
    • 25.4.1. Build mines.html
    • 25.4.2. Video Summary
  • 25.5. Home Page Logic
    • 25.5.1. The index() Function
    • 25.5.2. Video Summary
  • 25.6. Database Functions
    • 25.6.1. Add Code To crud.py
      • 25.6.1.1. The record_mines() Function
      • 25.6.1.2. The count_mines() Function
    • 25.6.2. Video Summary
  • 25.7. Game Page Logic
    • 25.7.1. The play() Function
      • 25.7.1.1. Collect and Validate Guesses
      • 25.7.1.2. Collect Checkbox Data and Call check_guess()
    • 25.7.2. play() Summary
    • 25.7.3. Update mines.html
      • 25.7.3.1. Change Cells After Click
      • 25.7.3.2. Add Feedback Messages
    • 25.7.4. mines.html Summary
    • 25.7.5. Test the Game!
  • 25.8. Next Steps
    • 25.8.1. Appearance Options
    • 25.8.2. Gameplay Options
    • 25.8.3. Database Options
  • 25.9. Gameplay Functions Review (Optional)
    • 25.9.1. The game_logic.py Module
      • 25.9.1.1. The make_columns() Function
      • 25.9.1.2. The make_rows() Function
      • 25.9.1.3. The place_mines() Function
      • 25.9.1.4. The check_guess() Function
    • 25.9.2. The crud.py Module
      • 25.9.2.1. The check_surroundings() Function
      • 25.9.2.2. How to Check Surrounding Cells
      • 25.9.2.3. The check_surroundings() Code
      • 25.9.2.4. Video Summary
  • ← 24.11. Project: Movie SQLs (Part 2)
  • 25.1. Introduction →

Back to top

Page Source