Vous êtes sur la page 1sur 5

Team Project Proposal Due Date: Wednesday, November 16, 2010 Team Dynamite

Jimmy Brown

Desmond Lamptey

Michelle Ngo

Cierra Freeman

1. Story Board User Actions 1.) User opens the battleship game and sees the empty grid and the Place Your Ships, Play, and Quit buttons. 2.) User clicks on the Place Your Ships button What code needs to do The MainPanel constructor will create the GUI grid and button grid panels.

A buttonListener will be used to implement the actionListener which will start the game and track user clicks. A method will have to be implemented to make sure that boat positions are consecutive. Pop-up box with available boats to place on the board will appear. This box needs to check to see whether any boats have already been placed on the board. The actionPerformed method will call the handlePlayButton method. The handlePlayButton method will i) enable the buttons on the playing board, A handle grid button and a switch case will decide if theres a hit or a miss. A buttonListener and actionListener will use an event to exit the program when quit button is used.

3.) User places battleship to the grid. The user has the option of Aircraft Carrier, Battleship, Cruiser, Destroyer, and Submarine 4.) User clicks on the Play button.

5.) User clicks on the Computer grid and begins to play 6.) After user wins or loses, clicks OK, then click quit button.

Jimmy Brown

Desmond Lamptey

Michelle Ngo

Cierra Freeman

2. Design issues Potential Design Images

a. Programming the randomization of button clicks and placement of boats by computer. Initializing a randomrow variable and randomcol variable that will be set in the program to determine where each ship needs to be placed to go against the computer. Creating a pop-up window that would be reflective of the available boats to place on the board. Making sure that boat pieces are placed in consecutive order by player/computer.

Jimmy Brown

Desmond Lamptey

Michelle Ngo

Cierra Freeman

b. Class Battleship.java MainPanel.java Functionality Contains the main method and calls the MainPanel constructor. Creates the grid and the grid layout, the button, labels, and places the ships on the grid. Also hands the actions of the buttons. Contains information about the ship including its type, length Extends Ship and contains information about the players cruiser ship Extends Ship and contains information about the players submarine ship Extends Ship and contains information about the players battleship Extends Ship and contains information about the players destroyer ship Extends Ship and contains information about the players yamato ship

Ship.java Cruiser Submarine Battleship Destroyer Yamato

Project Management and Team Leadership Jimmy Brown will be the team leader for the project. He will be responsible for submissions and proofreading documents before submission deadlines. All members will be responsible for creating a project timeline and confirming that all deadlines are adhered to. In this way, Jimmy is not left to finish projects on his own, but to just make sure the code runs in JCreator and compressing the java files for grading. Communication Each member will provide their cell phone number and email address for contact. Most communications will be sent through email sent to all team members, including for email responses. If it is something urgent, group members may contact other members through text message, Facebook or phone call. Team members are responsible for re-communicating information discusses on an individual basis to the rest of the members. Meetings

Jimmy Brown

Desmond Lamptey

Michelle Ngo

Cierra Freeman

We will meet three times a week to work on our final project. Two of those times will be in class, and we will meet an additional one time outside of class. Additional meetings will be assigned, as needed. Decision Making In regards to the final project, when it comes to decision making such as any change to the coding, it will be discussed among the group before any changes may be made. The team has to agree to it before going in and making any adjustments.

Contact Information: Michelle Ngo mun135@psu.edu 267-391-9350 Jimmy Brown jlb5746@psu.edu 484-350-7258 Cierra Freeman clf5118@gmail.com 412-432-6092 Desmond Lamptey dluxe100@gmail.com 973-979-6352

Jimmy Brown

Desmond Lamptey

Michelle Ngo

Cierra Freeman

Vous aimerez peut-être aussi