Jump to content

Server based game

- - - - -

  • Please log in to reply
8 replies to this topic

#1
Mozana

Mozana

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts
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:

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Are you looking at doing this as web-based, or something else?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Mozana

Mozana

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts
I want to simulate a web based so, yes I think

#4
ZekeDragon

ZekeDragon

    Writes binary right handed and hex left handed

  • Moderators
  • 2,103 posts
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
liamzebedee

liamzebedee

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
Do you know about basic TCP/IP and packets?

#6
Mozana

Mozana

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts
thanks guys for all the advices you have given me they should serve a good start, thanks agen.

#7
Mozana

Mozana

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts
But that way too complicated I think ill try something else

#8
Mozana

Mozana

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts
Now I have looked into tcp so i go

#9
Mozana

Mozana

    Learning Programmer

  • Members
  • PipPipPip
  • 70 posts

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