Team 5: Virtual Casino
Test Number 1
- Functionality:
- Baseline
- Use Case:
-
- Player(Client) can do the following:
- Find the "Floor" interface on the naming service
- Call the "Floor.register" method with his/her username and
receive a user number.
- Call the "Floor.getBank" and "Floor.getTables" methods and
receive references to Bank and Tables objects respectively.
- Use the "Bank" interface to buy chips.
- Use the Tables interface to join a table.
- Leave the table.
- Unregister from the game.
- Server can do the following:
- Register it's "Floor" inteface with the naming service.
- Take registration requests from a player, putting the
player's name in the database and returning a player ID.
- Create "Bank" and "Tables" objects and send references to
them to the player.
- Sell chips to player storing information in the database.
- Assign a player to a table.
- Test distribution:
- /afs/ece/usr/etwilson/src/casino
- Test Sequence:(Two Hosts)
-
- Start SQL server on database host.
- Log in as a member of Team5 to a host in the
ECE linux cluster.
- Change directory to
~/src/casino.
- Using bourne/BASH shell type . ./project.env.
- Start orb with ./startOrbd.sh&.
- Start server with ./runServer.sh&.
- Start client on this host with ./runPlayer.sh localhost.
- When prompted by the player
application enter your name and hit return.
- When prompted to buy chips, enter a number and hit return.
- Wait for the Player application to finish.
- Test Sequence:(Three Hosts)
-
- Start SQL server on database host.
- Log in as a member of Team5 to one host in the ECE
linux cluster which we will call "serverhost".
- Log in as a member of Team5 to a second host in the ECE
linux cluster which we will call "playerhost".
- On "serverhost":
- Change directory to ~/src/casino.
- Using bourne/BASH shell type . ./project.env.
- Start orb with ./startOrbd.sh&.
- Start server with ./runServer.sh&.
- On "playerhost":
- Change directory to ~/src/casino.
- Using bourne/BASH shell type . ./project.env.
- Start client on this host with ./runPlayer.sh
localhost.
- When prompted by the player
application enter your name and hit return.
- When prompted to buy chips, enter a number and hit return.
- Wait for the Player application to finish.
- Configuration/deployment issues:
-
- Project is not packaged into Server and Player jar files yet
so you must run it out of the build tree in the ECE
linux cluster.
- You must have the MS-SQL server jar files installed at
$HOME/lib
- Known problems:
-
- While join table does mark that a table has been created
in the database and assign the player to it,
no actual table object is created.
- None of the actual gaming methods have been implemented.
- The methods "leaveTable" and "unregister" do nothing other than
print out a message on the commandline.
- Not tested with multiple clients or tables.
- Running two servers may result is not supported.
- There is very little error/duplication checking.
- Running Client or Server without an orb running or with
the orb's hostname or port mis-defined will result in
uncaught exceptions.
- Player input values are not checked an may result in undesired
behavior.
- It has only been run on host in the ECE linux cluster.