Hello Guys,
I'm starting a new project that's involve to create a multiplayer chess game. My question here is about a strategy for share the pieces moves and positions through the flash client, then each player can see the moves. I saw this tutorial http://code.seanhess.net/?p=140 wrote by Sean Clark where he explains how to do that using share-model. In my point of view, to perform the moves of pieces through the flash clients, the only thing that I need to do is share the x and y positions of each piece on the chess board, then the players can see the moves of each other. However, I'm not sure if it's the best approach. So, could you guys tell me in your opinion what is the best way to do something like that?
Thank you in advance.
Regards,
Eduardo Dias
Views
Replies
Total Likes
Hi Eduardo,
Definitely, I think your approach makes sense. For the shared model of the board, each piece would correspond to the body of a MessageItem within a node - you can store multiple such items in a node (indexed by their itemIDs). Have a look at the chapter on "Messaging and Permissions" in the AFC developer guide for more detail, check out the ShareModel example in the SDK, and feel free to ask followup questions here.
nigel
Views
Replies
Total Likes