how to solve minesweeper in 3 minutes
play

How to solve Minesweeper In 3 minutes Steven Waterman LOOK HERE IF - PowerPoint PPT Presentation

How to solve Minesweeper In 3 minutes Steven Waterman LOOK HERE IF YOUVE PLAYED MINESWEEPER BEFORE LOOK HERE IF Basics YOU DONT KNOW WHAT MINESWEEPER IS Minesweeper Board! Rectangular! Cells! Cells can be clear or mines 1 2 1


  1. How to solve Minesweeper In 3 minutes Steven Waterman

  2. LOOK HERE IF YOU’VE PLAYED MINESWEEPER BEFORE LOOK HERE IF Basics YOU DON’T KNOW WHAT MINESWEEPER IS

  3. Minesweeper Board! Rectangular! Cells!

  4. Cells can be clear or mines 1 2 1 2 1 2 2 2 2 2 2 1 1 2 2 2 1 1 0 2 2 2 1 1 1 1 1 2 1 1 1 2 3 2 2 1 1 1 1 There is 1 mine in these 3 cells 2 2 1 2 1 1 1 2 1 2 2 1

  5. Let’s Play! 9x9 board, 15 bombs

  6. 2 mines / 2 unknowns All are mines 1 1 Can flag 0 1 0 1 0 1 2 2 0 0 0 1 0 0 0 1 0 0 0 1

  7. 0 / 2 0 / 3 None are mines None are mines 1 1 Can Clear Can Clear 0 1 0 1 0 1 2 2 0 0 0 1 0 0 0 1 0 0 0 1

  8. 1 / 1 Can Flag 1 1 1 0 1 2 0 1 3 0 1 2 2 3 0 0 0 1 3 0 0 0 1 0 0 0 1

  9. 0 / 1 0 / 2 Can Clear Can Clear 1 1 1 0 1 2 0 1 3 0 1 2 2 3 0 0 0 1 3 0 0 0 1 0 0 0 1

  10. Stuck :( 1 1 1 1 0 1 2 3 0 1 3 0 1 2 2 3 0 0 0 1 3 0 0 0 1 0 0 0 1 2

  11. 1 / 5 1 / 2 1 1 1 1 0 1 2 3 0 1 3 0 1 2 2 3 0 0 0 1 3 0 0 0 1 0 0 0 1 2

  12. 1 / 5 Contains 1 / 2 1 1 1 1 0 1 2 3 0 1 3 0 1 2 2 3 0 0 0 1 3 0 0 0 1 0 0 0 1 2

  13. 1 / 5 1 / 2 minus 1 1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1 1 1 0 1 2 3 2 1 2 0 1 3 0 1 2 2 3 0 0 0 1 3 0 0 0 1 0 0 0 1 2

  32. 2 2 0 1 1 1 0 / 1 2 2 0 1 1 1 Can Clear 1 1 1 1 2 2 1 1 1 0 1 2 3 2 1 2 0 1 3 0 1 2 2 3 0 0 0 1 3 0 0 0 1 0 0 0 1 2

  33. 2 2 0 1 1 1 1 / 1 2 2 0 1 1 1 Can Flag 1 1 1 1 2 2 1 1 1 0 1 2 3 2 1 2 0 1 3 4 0 1 2 2 3 0 0 0 1 3 0 0 0 1 0 0 0 1 2

  34. 2 2 0 1 1 1 0 / 1 2 2 0 1 1 1 Can Clear 1 1 1 1 2 2 1 1 1 0 1 2 3 2 1 2 0 1 3 4 0 1 2 2 3 0 0 0 1 3 0 0 0 1 0 0 0 1 2

  35. 2 2 0 1 1 1 1 Stuck :( 2 2 0 1 1 1 1 1 1 1 2 2 1 1 1 0 1 2 3 2 1 2 0 1 3 4 0 1 2 2 3 0 0 0 1 3 0 0 0 1 0 0 0 1 2

  36. Let’s Play! 9x9 board, 15 bombs

  37. Let’s Play! 9x9 board, 15 bombs

  38. Let’s Play! 9x9 board, 15 bombs

  39. 15 15 15 bombs bombs bombs Let’s Play! 15 9x9 board, 15 bombs 15 bombs bombs

  40. 2 2 0 1 1 1 1 15 / 81 2 2 0 1 1 1 1 1 1 1 2 2 1 1 1 0 1 2 3 2 1 2 0 1 3 4 0 1 2 2 3 0 0 0 1 3 0 0 0 1 0 0 0 1 2

  41. 2 2 0 1 1 1 1 7 / 20 2 2 0 1 1 1 1 1 1 1 2 2 1 1 1 0 1 2 3 2 1 2 0 1 3 4 0 1 2 2 3 0 0 0 1 3 0 0 0 1 0 0 0 1 2

  42. 2 2 0 1 1 1 1 6 / 18 2 2 0 1 1 1 1 1 1 1 2 2 1 1 1 0 1 2 3 2 1 2 0 1 3 4 0 1 2 2 3 0 0 0 1 3 0 0 0 1 1 0 0 0 1 2

  43. 2 2 0 1 1 1 1 5 / 18 1 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2 0 1 1 1 Can Flag 1 1 1 1 2 2 1 1 1 0 1 2 3 2 1 2 0 1 3 3 4 0 1 2 2 3 4 0 0 0 1 3 3 2 2 0 0 0 1 2 0 0 0 0 0 1 2 1 0 0

  52. 2 2 0 1 1 1 1 0 / 1 2 2 0 1 1 1 Can Clear 1 1 1 1 2 2 1 1 1 0 1 2 3 2 1 2 0 1 3 3 4 0 1 2 2 3 4 0 0 0 1 3 3 2 2 0 0 0 1 2 0 0 0 0 0 1 2 1 0 0

  53. ...What now? 2 2 0 1 1 1 1 2 2 0 1 1 1 1 1 1 1 2 2 1 1 1 It’s time for... 0 1 2 3 2 1 2 0 1 3 3 4 0 1 2 2 3 4 0 0 0 1 3 3 2 2 0 0 0 1 2 0 0 0 0 0 1 2 2 1 0 0

  54. Guessing 2 2 0 1 1 1 1 2 2 0 1 1 1 1 1 1 1 2 2 1 1 1 0 1 2 3 2 1 2 0 1 3 3 4 0 1 2 2 3 4 0 0 0 1 3 3 2 2 0 0 0 1 2 0 0 0 0 0 1 2 2 1 0 0

  55. 2 2 0 1 1 1 1 2 2 0 1 1 1 1 1 1 1 2 2 1 1 1 :( 0 1 2 3 2 1 2 0 1 3 3 4 0 1 2 2 3 4 0 0 0 1 3 3 2 2 0 0 0 1 2 0 0 0 0 0 1 2 2 1 0 0

  56. ( bad solver code on github @stevenwaterman) Next time: ● Constraint Reduction ● Inexact Constraints ● Proof of Completeness ● How to actually implement it ● How to do it without taking exponential time So get excited for How to solve minesweeper in a series of 20 hour-long lectures!

Recommend


More recommend