I have looked within the site and I think its dafe for me to create this thread, any way what i want to do is crate a game (rock,paper,scissors) that is a client-server. so I'm asking you guys for tips as to how to begin for now I have not coded anything just gathering some ideas to use on the game.
:cool:
8 replies to this topic
#1
Posted 23 April 2011 - 03:38 PM
|
|
|
#2
Posted 23 April 2011 - 04:39 PM
Are you looking at doing this as web-based, or something else?
#3
Posted 25 April 2011 - 02:20 AM
I want to simulate a web based so, yes I think
#4
Posted 25 April 2011 - 03:30 AM
Well, I'd look into the Socket and ServerSocket classes, as well as their SSL variants in the javax.net.ssl package to start. I'd tackle the harder job of getting all the network code set up first, using a simple command-line version of your RPS game that assumes good input. After that I'd write the GUI client program that allows you to play RPS online. If you intend on having clients play against each other, and the results be calculated and such on a non-GUI server of some kind, then you could keep the Java-running server online on some kind of a VPS and have anyone use it on the internet. If you were going to do that though, you would also want to add functionality that allows users to communicate with each other on the server when their not playing a RPS game.
Wow I changed my sig!
#5
Posted 25 April 2011 - 08:56 PM
Do you know about basic TCP/IP and packets?
#6
Posted 27 April 2011 - 02:38 AM
thanks guys for all the advices you have given me they should serve a good start, thanks agen.
#7
Posted 27 April 2011 - 02:39 AM
But that way too complicated I think ill try something else
#8
Posted 03 May 2011 - 12:23 AM
Now I have looked into tcp so i go
#9
Posted 03 May 2011 - 12:28 AM
ZekeDragon said:
Well, I'd look into the Socket and ServerSocket classes, as well as their SSL variants in the javax.net.ssl package to start. I'd tackle the harder job of getting all the network code set up first, using a simple command-line version of your RPS game that assumes good input. After that I'd write the GUI client program that allows you to play RPS online. If you intend on having clients play against each other, and the results be calculated and such on a non-GUI server of some kind, then you could keep the Java-running server online on some kind of a VPS and have anyone use it on the internet. If you were going to do that though, you would also want to add functionality that allows users to communicate with each other on the server when their not playing a RPS game.
Thats ingenious and has been much help as I am going to use the concepts you have suggested. thanks @zekeGragon
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









