Structured User Story #30 - MySQL Database for AI Player

USE CASE #30

AI Player integrates a MySQL Database for probabilities and determines when and how to bet and fold.

Preconditions

MySQL properties must be installed properly with a database using the handValues.SQL. A server must be running and users are connected, but a game is NOT started yet!

Success End Condition

When the server is running, someone must click on "Connect AI Player" which will bring up a GUI that is used to show what the AI is doing. The AI is then connected to the game just like a normal person, with a name such as "AI Player Version 1" Using the MySQL database, the AI bets or folds based on probabilities of its hand.

Fail End Condition

If the game has already been started, then the AI Player will not connect and play successfully, it will essentially be an 'observer' because it will NOT be allowed to send commands or participate in gameplay.

Trigger

Server running, user clicks "Connect AI Player" in the server gui. AI Player calls upon the MySQL database then connects to the localhost server!

Description Someone the runs the server on a LAN.
Gui's may or may not be running already, but the game has NOT been started yet.
A user clicks "Connect AI Player" on the server box, the AI Player connects to the MySQL database then connects to the game.
Only one AI Player may be connected to the game (this keeps it more exciting for the users!)