COP 2800  Assignment 4

15.00 $ 7.50 $

Categories: ,

Description

This is a simplified minesweeper game.  The player moves from the starting position on the board to the finish without stepping on a bomb.

Your program must work like this…

  1. Player starts in upper left
  2. Player moves one space at a time
  3. Player can only move right or down. Ignore any other input.
  4. Player cannot move off the board
  5. Player wins when he/she reaches lower right corner
  6. Player loses if he/she steps on a bomb
  7. Your program should prompt for the size of the board. Ensure that input is at least size 3. Place one bomb for a 3X3 board. Add an additional bomb for each row above 3.
  8. Bombs must be placed randomly. Your instructor will check this thoroughly.
  9. Insure that bombs are not placed at the start or the finish.
  10. Game board should be printed out in a user friendly fashion at the start and after each move, except the last. Since you are doing this as a homework exercise rather than a real game, your board display should show where the bombs are.  This will make it easier for your instructor to grade your program.

See the 4 pages of sample output included in this document.

You are free to design your program any way you wish, with one stipulation.  The intent of this exercise is to give you experience with arrays in Java.  The game board must implemented in your program as an array.