Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  Poker game...  (Read 2144 times)
0 Members and 1 Guest are viewing this topic.
Offline appel

JGO Wizard


Medals: 51
Projects: 4


I always win!


« Posted 2007-08-28 14:55:57 »

Hi,

I'm working on a (multiplayer) poker game which will be playable using a tv set-top-box (iptv solution). It's basically a web frontend with all the logic on the backend. People will be able to play poker thru their TV with other people, who are also playing thru their TV.

What I am wondering about (and I DON'T have lots of web development/JEE experience with Java) is how I would implement the following:

When the user enters the poker game he should see a list of available poker tables. Just like if you were to walk into a casino you would see all the tables, and how many are playing at all the tables, and what tables have available seats. What I want to do is to make the server create tables when a lot of players are playing and many tables are full, but delete idling tables.

I don't know how I would do that using a servlet based web, unless I would somehow run up some control-thread that controls all the table-threads? Or would I rather want to write some special server and run it up on some special port and communicate with it (from the web app) with soap/webservices?

I was thinking of using Spring+Jetty, just a regular MVC web using Spring's IoC, but I am worried I need to write some special server for this.

Any help?


Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline keldon85

Senior Duke


Medals: 1



« Reply #1 - Posted 2007-08-29 06:19:17 »

Quote
I don't know how I would do that using a servlet based web, unless I would somehow run up some control-thread that controls all the table-threads? Or would I rather want to write some special server and run it up on some special port and communicate with it (from the web app) with soap/webservices?
That's how I've always thought about doing something like that!

Offline noblemaster

JGO Ninja


Medals: 20
Projects: 10


Age of Conquest makes your day!


« Reply #2 - Posted 2007-08-29 06:32:21 »

Quote
When the user enters the poker game he should see a list of available poker tables. Just like if you were to walk into a casino you would see all the tables, and how many are playing at all the tables, and what tables have available seats. What I want to do is to make the server create tables when a lot of players are playing and many tables are full, but delete idling tables.

database comes to mind...  Grin

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

Senior Duke


Medals: 1



« Reply #3 - Posted 2007-08-29 06:52:52 »

database comes to mind...  Grin
Actually now you say that, you could eliminate your server and have the players interaction trigger the server to perform a clean up of the lobby. I don't know what sort of load that would put on the server if 50 people are all actively looking at rooms!

Offline noblemaster

JGO Ninja


Medals: 20
Projects: 10


Age of Conquest makes your day!


« Reply #4 - Posted 2007-08-29 08:20:23 »

The load wouldn't be that high: we are NOT talking about real-time. Regarding rooms etc: You can cache room information to reduce database load if necessary.

Offline keldon85

Senior Duke


Medals: 1



« Reply #5 - Posted 2007-08-29 08:39:02 »

The load wouldn't be that high: we are NOT talking about real-time. Regarding rooms etc: You can cache room information to reduce database load if necessary.
Yes, but you want the lists of rooms to be up to date in real time. Of course being several seconds out of date is not a problem; when playing on line poker it is more often than not that I enter a room with 8 people to find that it is now full with 10 people when I enter.

Offline noblemaster

JGO Ninja


Medals: 20
Projects: 10


Age of Conquest makes your day!


« Reply #6 - Posted 2007-08-29 08:41:32 »

Exactly what I am talking about! A 5 seconds cache...


Offline appel

JGO Wizard


Medals: 51
Projects: 4


I always win!


« Reply #7 - Posted 2007-08-29 16:04:00 »

Well,

My thoughts were to have some BoardController (or whatever) thead that maintains a list of boards in some List. It periodically checks all the boards, how many players are in each, and from that information it can determine if it needs to remove boards or add new boards.
Not sure if keeping this information in a database is *good*.

Doing this for every user interaction seems like a overkill, especially if there are (let's say) hundreds/thousands of players, and for every event they generate I need to check the boards? This means a huge needless overload on the server.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (38 views)
2014-10-17 03:59:02

Norakomi (29 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (28 views)
2014-10-15 16:18:58

TehJavaDev (56 views)
2014-10-14 00:39:48

TehJavaDev (55 views)
2014-10-14 00:35:47

TehJavaDev (46 views)
2014-10-14 00:32:37

BurntPizza (64 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (78 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!