3.1 Package Game

3.1.2.4 State Diagram for Game

3.1.2.5 Algorithm Design

Not required for this design


3.1.2.6 Alternative Design Considerations

I did initially intend to use a class called RandomNum which would just simply generate a figure but due to the dynamic nature of the database ie. correct questions were getting picked off, I then created a class called Roulette which took care of this. Also I left the random picking to the multi2 servlet which really only needed one line of code eg. fig = (int)(Math.random() * (art.length));