Release History

Version 1, 2/1/05

User Stories:

 

Launching CasinoClient

The user launches CasinoClient.class
Precondition: the user has the client part of our program installed correctly
Successful end condition: the login window pops up
Fail end condition: the login window doesn't pop up
Trigger: in the project directory, typing ant run
 

Creating the database table

The server launches CreateTable.class
Precondition: the postgreSQL server is running and setup correctly.
Successful end condition: A correctly formatted table is setup in the database.
Fail end condition: That table is not created.
Trigger: in the class folder type "java -classpath .;..\lib\jdbc3.jar lthc.casino.CreateTable"
 

Bug fixes:

  1. Couldn't connect to the database, fixed it by creating the jar file jbdc3.jar
  2. Had an incorrect RMI address, and we corrected it

Version 2, 2/17/05

User Stories:

 

Open the login window

The user opens the login window
Precondition: the user has the client program installed and the server program is running correctly also
Successful end condition: the login window pops up
Fail end condition: the login window doesn't pop up
Trigger: in the project directory, typing ant run

 

Creating a new account

The user creates a new account
Precondition: everything is installed correctly, and you are at the create new account window
Successful end condition: the create new account window pops up and the login screen disappears
Fail end condition: create new account window doesn’t pop up 
Trigger: at the initial screen, press the “Create Account” button
 

Logging in

The user logs in

Precondition: everything is installed correctly, and you are at the logon screen
Successful end condition: the main window pops up and the login screen disappears
Fail end condition: a popup tells you that you typed an incorrect username and password
Trigger: at the initial screen, type in your username and password

 

Closing windows

Closing windows

Precondition: everything is installed correctly, and you have a program window open
Successful end condition: the program closes and disconnects from the database
Fail end condition: either of these doesn’t happen
Trigger: pushing the “X” at the top right of the window

 

Slot Machine

Opening the slot machine game

Precondition: everything is installed correctly, and you are at the main screen
Successful end condition: the slot machine window opens and the main window disappears
Fail end condition: the slot machine window not opening
Trigger: pushing the slot machine button at the main window

 

Playing slots

Playing the slot machine game

Precondition: everything is installed correctly, and you are at the slots game window
Successful end condition: the three slot images spin and then give you three images, and your money is adjusted accordingly
Fail end condition: any of these not happening

Trigger: pushing the crank button

 

Exiting slots

Exiting the slots game

Precondition: everything is installed correctly, and you are at the slots game window
Successful end condition: the slots window closes and the main window opens
Fail end condition: either of these not happening

Trigger: pushing the exit button

 

Leader Board

Viewing the leader board

Precondition: everything is installed correctly, and you are at the main window
Successful end condition: the leader board window pops up and the main window disappears
Fail end condition: the leader board window doesn’t pop up

Trigger: pushing the leader board button

 

Logging out

Logging out of the game

Precondition: everything is installed correctly, and you are at the main window
Successful end condition: the main window disappears and the login window appears
Fail end condition: this doesn’t happen

Trigger: pushing the logout button

 

Bug fixes:

  1. Slot machine payout was too high, fixed it by adjusting the payout amounts
  2. Every time you logged in the amount of money a user would have would reset to $1000, fixed by having the User class save the info to the database every time it adjusted a value for money or rank
  3. Pictures didn’t show up, fixed by adjusting the references to the GIF files to be relative to “project” instead of to the source file itself

Version 3, 3/11/05

User Stories:

 

Keno Button

Opening keno
Precondition: everything is installed correctly, and you are at the main window
Successful end condition: the main window disappears and the keno window appears
Fail end condition: this doesn’t happen

Trigger: pushing the keno button

 
New card
Pressing the new card button 
Precondition: everything is installed correctly, and you are at the keno window
Successful end condition: all the keno selections clear
Fail end condition: this doesn’t happen

Trigger: pushing the new card button

 
Random 10
Pressing the random 10 button 
Precondition: everything is installed correctly, and you are at the keno window
Successful end condition: a random 10 keno button selections are made
Fail end condition: this doesn’t happen

Trigger: pushing the random 10 button

 
Previous choices
Pressing the previous choices button 
Precondition: everything is installed correctly, and you are at the keno window
Successful end condition: your previous selections are made again
Fail end condition: this doesn’t happen

Trigger: pushing the previous choices button

 

Exiting keno
Pressing the exit button
Precondition: everything is installed correctly, and you are at the keno window
Successful end condition: the keno screen disappears and the main window appears
Fail end condition: this doesn’t happen

Trigger: pushing the exit button

 

Pressing GO!

Pressing the GO! Button

Precondition: everything is installed correctly, and you are at the keno window
Successful end condition: 20 winning numbers are selected, and your money adjusted accordingly
Fail end condition: this doesn’t happen

Trigger: pushing the GO button

 

Blackjack Button

Opening blackjack
Precondition: everything is installed correctly, and you are at the main window
Successful end condition: the main window disappears and the blackjack window appears
Fail end condition: this doesn’t happen

Trigger: pushing the blackjack button

 

Chatting in blackjack

Using the chat service in blackjack 
Precondition: everything is installed correctly, and you are at the blackjack window
Successful end condition: the text appears in all the client windows
Fail end condition: this doesn’t happen

Trigger: typing into the chat window

 

Video poker Button

Opening video poker
Precondition: everything is installed correctly, and you are at the main window
Successful end condition: the main window disappears and the video poker window appears
Fail end condition: this doesn’t happen

Trigger: pushing the video poker button

 

Bug fixes:

  1. All of the program was actually on the client side, so we had to refactor it all to be on the client side
  2. After the above was fixed and slots was added, it was still on the client side, so the code had to be changed to make it be on the server side
  3. The connection to the database wouldn’t close when the window would close, fixed by making it do that
  4. The slot machine crank could be pressed spinning the slots again while they where still spinning, fixed it by disabling that button until it stopped spinning
  5. Had trouble keeping info on the screen current for all the users, solved by adding an updater class