locked
multi-player tic-tac-toe RRS feed

  • Question

  • hello folks,

     i've been reading this forum and searching the web for a multi-player game for Silverlight 3 for the past couple days.  but, can't seem to find any working sample.

    as a learning experience, i want to use WCF for Silverlight 3.  what i'm interested in is that when the piece moves on the board it updates both the cleint/player screens.

    i would think i need a TicTacToeHost and TicTacToeClient.  but not sure how to update the screen on both player screens.  any working samples, snippet, etc. regarding a multi-player board game?

     

    thanks in advance,
    Bob

     

     

     

     

    Tuesday, August 18, 2009 6:07 PM

Answers

  • Hi,

    There are 2 optionas available to you, either use Duplex WCF or Socket based communication, try this for more info on multiplayer game.

    Wednesday, August 19, 2009 7:54 AM
  • There are a number of Silverlight multiplayer frameworks available and being developed.  I think it's good to have options because one framework doesn't fit all needs.  I'm publishing a set of socket components for Silverlight you might be interested in taking a look at,

    http://www.siliconcommandergames.com/PrismServerNet.htm

    Thursday, August 20, 2009 12:46 AM

All replies

  • Hi,

    There are 2 optionas available to you, either use Duplex WCF or Socket based communication, try this for more info on multiplayer game.

    Wednesday, August 19, 2009 7:54 AM
  • hi VC,

     thanks for the response.
    i searched and read all of those links already before i posted on this forum.

    last night, i tried the Microsoft MSDN:
    http://msdn.microsoft.com/en-us/library/cc645027(VS.95).aspx

    http://msdn.microsoft.com/en-us/library/cc645028(VS.95).aspx

    however, it seems like the doc made for the older released of Silverlight 3 Beta.

    i'm using VS2008, SL3 July version and FX3.5 SP1.

    followed the instruction step-by-step, and when it's time to compile, got MetaData Disabled Error.
    a few more searches, fixed that problem.

    but then, can't get the Silverlight client to compile.
    got the following error msg, "Unhandled Exeption ("Unhandled Error  in Silverlight Application an AsyncCallBack threw an exception.
    at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously) at System.ServiceModel.AsyncResult.Complete(Boolean) ")

    anymore suggestion?
    love to see how the board game multi-player implemented in SL3.  Wink

     what would be neat for SL4 is to have MULTI-PLAYER framework included....that will make SL a good competitor to Flash.

     

     

     

    Wednesday, August 19, 2009 6:58 PM
  • There are a number of Silverlight multiplayer frameworks available and being developed.  I think it's good to have options because one framework doesn't fit all needs.  I'm publishing a set of socket components for Silverlight you might be interested in taking a look at,

    http://www.siliconcommandergames.com/PrismServerNet.htm

    Thursday, August 20, 2009 12:46 AM
  • hi Glitch,

     thanks for the link.
    i checked out your site and it looked very interesting.
    will definitely download the stuff and give it a try.

    i agree having options are good.
    I just hope that options will happen before 2010.  Confused

    Thursday, August 20, 2009 3:32 AM
  • Hi,

    Frankly speacking I don't like Duplex webservice. I'm a socket lover, I use them whenever possible becuase you know what is going on very transperently rather than duplex webservice, in which most of the things are under the hood. And PrismServer seems quite promising at first sight.

    Thursday, August 20, 2009 6:24 AM
  • well folks, i think i got this figured out now IF i can understand more how WCF DUPLEX works.
    and so, i went on a web hunt anything related to WCF DUPLEX.
    came across some interesting stuff such as MIX 09 CHAT SAMPLE and other variants based on it.

    however, i'm hitting a small bump along the way.
    see my post on WCF forum below:

    http://silverlight.net/forums/t/124111.aspx

     

     

    Monday, August 31, 2009 7:08 PM