Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
need help with a general concept
Raj Sahae
2/20/2007 10:26:00 PM
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?
--
Posted via
http://www.ruby-...
.
3 Answers
Tim Pease
2/20/2007 11:19:00 PM
0
On 2/20/07, Raj Sahae <rajsahae@gmail.com> wrote:
> 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/...
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
Raj Sahae
2/21/2007 8:59:00 PM
0
Thanks for the info. I probably should have read a little more through
the library, I could have found those things myself. Just in case
anyone else is interested, I did find a little more detailed intro to
DRb at
http://chadfowler.com/rub...
Raj
Tim Pease wrote:
> On 2/20/07, Raj Sahae <rajsahae@gmail.com> wrote:
>> 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/...
>
> 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
>
>
The Peeler
2/23/2013 8:26:00 PM
0
On Sat, 23 Feb 2013 12:04:53 -0800, my personal traumatized little idiot,
now posting as FAKE Moose in Love, wrote:
> ...
<BG> IMPRESSIVE!!!
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
need help with a general concept
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password