mine-sweeper - Mine-Sweeper-we will be making mine-sweeper...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Mine-Sweeper -we will be making mine-sweeper in class using GUI's -stage one will be organizing the layout of the GUI's -stage two will be board algorithms -stage three will be the entire code -grid has row number nr, and column number nc --every button needs to have a handler and listener to detect mouse actions --when a button is clicked, have its location sent to the virtual version of the game board handle logic --have the gui version of the board handle which is clicked and unclicked minefield -nr x nc array of squares --state of square -virtual board --open or closed --bomb no bomb --number of bombs adjacent squares -we need to be able to: --know whether the game has blown up --open squares or open a region -each square can hold its: --row value --column value --image --knows whether it has been left or right clicked -GUI has methods: --square right click that sends row and column value
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
--refresh the board -logic board handles : --whether a square is open or closed --bomb or not a bomb
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern