need help with a general concept

R

Raj Sahae

I'm trying to make an application with the following properties:
It uses FXRuby
It's a multiplayer turn based card game
Played over a network, or the internet
Players may play cards during other players turns
Players may manipulate their own components at any time
Players can make requests for info on any other players components at
any time

I originally planned to use threading, but I didn't know that Ruby
blocked IO in threads. Is there a better way to implement this type of
game than using threads and sockets? I am somewhat new to ruby, I
wouldn't consider myself an average ability ruby coder yet. How should
I go about this?
 
T

Tim Pease

I'm trying to make an application with the following properties:
It uses FXRuby
It's a multiplayer turn based card game
Played over a network, or the internet
Players may play cards during other players turns
Players may manipulate their own components at any time
Players can make requests for info on any other players components at
any time

I originally planned to use threading, but I didn't know that Ruby
blocked IO in threads. Is there a better way to implement this type of
game than using threads and sockets? I am somewhat new to ruby, I
wouldn't consider myself an average ability ruby coder yet. How should
I go about this?

Two things to look into would be DRb and Rinda. Eric Hodel has a nice
writeup about both on his segment7 blog.

http://segment7.net/projects/ruby/drb/index.html

DRb stands for Distributed Ruby and Rinda is the Ruby implementation
of a TupleSpace. The TupleSpace would be used to hold all the
information about the current game state, and DRb would be used by the
clients to communicate with one another.

Have fun with the project.

Blessings,
TwP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top