This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Hello! This is my first try to write a topic.
Normally I can find the information I need at the internet.
But now this is a special case. I have to create a class diagram (only create, not implement) for a nine men`s morris game (also called mills, but it doesn`t really matter). The user should be able to log in and to choose an opponent is actually online for this game and to play the game. The information about the users should be saved in the database. So I only need to show which classes we need for this game, without methods and variables.
I created such a class diagram, but on some places I think I`m wrong, but I don`t know how I can do it right. This is the presentation layer (pres): maybe I need the jsp files for the view? Now It`s just java, but in this case the users would need to install java locally on the client. Or the servlets? I don`t have any experince with both of them.
The second point I think I`m wrong is: do I need something special to implement the possibility for users to log in and to choose an opponent for a play?
The diagramm is attached as an PNG-Image.
I would be very very happy if I could get some advices!!!
Are you looking to use a web-application or stand-alone java programs?
Joined: Jun 14, 2012
Thank you for your first replay! Yes, it should be a web application, running on Apache Tomcat and maybe using ZK as an AJAX Web Framework.
The really important question for me now is: I don`t know how to implement the possibility for users to choose an opponent from the others logged in on the webpage. I just have one user class representing one single user and so I could for example implement the game between the user and the computer, I mean my program simulating an opponent. But how could the user choose one real opponent?