Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Socket and/or Multi-player Card Game Tutorials  (Read 3496 times)
0 Members and 1 Guest are viewing this topic.
Offline unco

Junior Newbie

Java games rock!

« Posted 2004-07-11 18:31:06 »

Hello All,

I am currently trying to write a multi-player card game, but havn't found any instructions on how to do this task.  I know I will need to use sockets, but not sure what else I would have to do.  I was wondering if anyone knew where I can find good tutorials on how to build multi-player card games and tutorials explaning sockets.  This project is due for class by mid August, but the Teacher mentioned Friday that he doesn't teach threads, application communication, multi-player functions, sockets, which I am stuck now with this project that I would really like to do, but with no guidance.  Any suggestions or ideas would be greatly appreciated.  Thanks in advance.
Offline unco

Junior Newbie

Java games rock!

« Reply #1 - Posted 2004-07-17 12:29:18 »

Update on my previous post.  

The reason I was asking for information on sockets or multiplayer card game is because I am having no luck finding information on how to get my card game applet to communicate with the server and upto 8 total users.  I would like to use an applet if possible, but don't know where to look to find my answers on how to get multiple connections within an applet.  I have several tutorials on applicaitons, but nothing on applet.  Any guidance would be greatly appreciated.

Offline K.I.L.E.R

Senior Devvie

Java games rock!

« Reply #2 - Posted 2004-07-20 01:37:45 »

I think you should be able to apply your knowledge on applications onto applets in the case of multiplayer games.

Is there a name for a "redneck" programmer?

Unemployed. Wink
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DanK

Junior Devvie

Javver games rock yawel!

« Reply #3 - Posted 2004-07-20 18:41:41 »

If you use an applet you won't be communicating with anything but the server, since the security restrictions keep you from connecting to anywhere but the server that the applet is downloaded from. Applets aren't useful for peer to peer.

The Java Tutorial has plenty of information on how to setup sockets as a server. The Java Tutorial

There is also information about threads contained in the tutorial.

Typically if you are going to be using a socket to communicate with a server for a game you will want to create your socket and use a thread to send/receive the information for that socket. The Observer and Observable classes are useful for this, you can find a tutorial on how to use observer and observable online at javaworld.

Offline Elomis

Junior Newbie

Don't run with scissors?

« Reply #4 - Posted 2004-07-28 02:37:14 »

The socket tutorial at is the bomb, but try doing a google search on java socket programming or chat server java for more supporting detail.  The sun tutorial goes from the very simple one client one server to getting involved with some knock knock game garbage without paying much attention to what people probably want to know inbetween.

Good luck :-)
Pages: [1]
  ignore  |  Print  

EgonOlsen (79 views)
2018-06-10 19:43:48

EgonOlsen (59 views)
2018-06-10 19:43:44

EgonOlsen (78 views)
2018-06-10 19:43:20

DesertCoockie (261 views)
2018-05-13 18:23:11

nelsongames (159 views)
2018-04-24 18:15:36

nelsongames (158 views)
2018-04-24 18:14:32

ivj94 (901 views)
2018-03-24 14:47:39

ivj94 (162 views)
2018-03-24 14:46:31

ivj94 (813 views)
2018-03-24 14:43:53

Solater (177 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!