2 player turn based game logic in c# for snake and ladder

Hello programmers,
I am developing a snake and ladder game in xaml and C#.(windows 8.1 app)
my question is:
1) I am unable to think about the solution for player turn, I have build the game logic for single player and its working fine. please provide some solutions or the concept.
2) I have build the same game logic with two different ways, one with nested if else and the next with array which one would be good for performance.
and I also want to know about windows Azure for online score and multi player game service.

Hi,
I am not very familiar with the multiplayer Game development. For multiplayer games, you'll need to set up a matchmaking server and have the clients connect to it. It can then pair them off and facilitate communications. If the clients have publicly available
network addresses then it can introduce them and they can talk directly to each other.There isn't anything built in for this so you'll need to either build your own or find a third party implementation. If you are using Unity3d then check out
http://docs.unity3d.com/Documentation/Components/net-MasterServer.html
Also, you can use Xbox services, and I find an article below:
https://msdn.microsoft.com/en-us/library/bb975801.aspx
For windows Azure problem, you should go to windows Azure forum.
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

Similar Messages

  • I am developing turn based game but it does not clear the badge number

    Currently i am developing turn based game and i get notifications for new game if someone invite me but i unable to clear these badge number . Is there any one who can suggest me how to clear badge number's for turn based game in objective c ?

    HI
    As per my understanding of your  issue, there  are 2 ways.. one is what u are trying...in this way first ensure your  item have proper  canvas setup. Or  try to  display the canvas without  using  button.  If this work, then there should not be problem.
    Second way of doing is ..
    Using  TAB Canvas.   You put all your 'MYBLOCK' data on  TAB PAGE(2ND PAGE), ....AND  in when buttong pressed, u just use go_block...will complete your job without much effect.
    If any issue, post here..

  • Implementing a turn-based game

    Hi,
    I am implementing a turn based game but am having problems coding the actual turns of the players.
    I have thought maybe:
    Player[] players = {player1, player2, player3, player4 etc }
    while(there is no winner) {
        players[1].haveGo();
        players[2].haveGo();
        players[3].haveGo();
        players[4].haveGo();
    }Is this a good way of implementing a turn based game or is there a default way which is considered good practise?
    Many thanks
    Cath

    Hi Cath
    The pseudo code you've included is wrong because the loop will be completed even if one of the players is finished the game. it's have to be like this .
    while(there is no winner)
         players[1].haveGo();
         if (there is no winner) players[2].haveGo();
         if (there is no winner) players[3].haveGo();
         if (there is no winner) players[4].haveGo();

  • Does Apple have an alternative for adobe flash player I have websites that require it for viewing and they tell me Apple restricts Adobe.

    Does Apple have an alternative for adobe flash player I have websites that require it for viewing and they tell me Apple restricts Adobe.

    Hi Ron.  Timely question!  Try  "Hype"
    http://tumultco.com/hype/ 
    Hype was just released and can be purchased at the Apple App store.   I just got an iphone and resized all my websites will have to be revised. Read about it ...
    http://mobile.informationweek.com/10996/show/4713846be58e278050d7a7921c8f68eb/
    http://m.minyanville.com/?guid=3948&catid=5
    Or go directly to http://tumultco.com/hype/ for tons of info. 

  • Help needed with Multiplayer/Network aspect of a turn-based game.

    Hello,
    I've converted a turn-based 4-player board game into a nicely working JApplet. Everything works fine, however, I'm stuck in "Hot Seat" mode. I need to get this working for multiple clients, but I'm not sure how to do this.
    Can I use a servlet that the clients connect to to share data? The machine is running a webserver but I don't have access to the startup scripts. Can I launch the servlet manually?
    If a servlet won't work, I am familiar with c/c++ socket programming. Should I just create a Java server to handle the exchange? I'm guessing applets can't connect to a server, so I'd have to convert the JAppet to an application, true?
    Please give me an idea what the best mechanism to exchange data would be, and I'll follow that trail.
    -Pak

    It sounds like the applet is a self-contained program, serving up to 4 players, and not communicating with a separate server or clients. This would imply that your single applet instance owns and maintains the game state model.
    If you want to move to a multi-instance game, you have two choices. Either peer-to-peer, and you can do without server altogether if you want to, or client/server, and you need a server. Both have pros and cons, but usually the client/server model is superior, it is also by far the most common. For applets it may actually be the only choice due to security restrictions, but I�m not an applet expert. Both of these distributed models require a rethink on your part regarding the game state model. If it�s a big rethink or not depends on your game and your ambition. Basic questions/issues can be:
    * Do all clients/instances see all state information?
    * Do you need persistance (e.g. save game, crash recovery)?
    * How do instances connect to each other/to the server?
    * Which instances may manage the game (accept/throw out players, terminate the game, etc)
    * Perhaps the most important: How is the consistency of state information ensured between the instances?
    (A note on your other question: servlets are server-side java programs that generate HTML-pages to be sent to the browser, similar to PHP and ASP. They have nothing directly to do with applet technology.)
    Regards,
    / Chris

  • I bought the game Rome Total War for Mac and for 3 days i have tried to download and keep stopping

    I have tried 3 days to download the game Rome Total war for MAC Pro and NOT impressed. keeps crashng and take s at least 10 hours to load.
    HELPPpppppppppppp

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Web turn based game - lines of action

    Hi,
    I'm trying to build simple web lines of action with jsp. i already have a game engine which i'm going to use in a bean
    my problem is that i want the user to see message "please wait - thinking" while the computer is thinking on the next move and after the computer finished calculating the next move to send it to the user. and now the user could enter his next move from a textline.
    thanks
    Yair

    It sounds like the applet is a self-contained program, serving up to 4 players, and not communicating with a separate server or clients. This would imply that your single applet instance owns and maintains the game state model.
    If you want to move to a multi-instance game, you have two choices. Either peer-to-peer, and you can do without server altogether if you want to, or client/server, and you need a server. Both have pros and cons, but usually the client/server model is superior, it is also by far the most common. For applets it may actually be the only choice due to security restrictions, but I�m not an applet expert. Both of these distributed models require a rethink on your part regarding the game state model. If it�s a big rethink or not depends on your game and your ambition. Basic questions/issues can be:
    * Do all clients/instances see all state information?
    * Do you need persistance (e.g. save game, crash recovery)?
    * How do instances connect to each other/to the server?
    * Which instances may manage the game (accept/throw out players, terminate the game, etc)
    * Perhaps the most important: How is the consistency of state information ensured between the instances?
    (A note on your other question: servlets are server-side java programs that generate HTML-pages to be sent to the browser, similar to PHP and ASP. They have nothing directly to do with applet technology.)
    Regards,
    / Chris

  • Default logical system names for application and metadata in models.

    hi,
    I have a dbt in web dynpro java. When we create a model, we give the logical system names. When our developement is over, do we have to change these names because in test system and subsequently production system, the backends will be oviously different than developement ?
    how do we change them and re import after changing? in abap we cant change our code in test and prod systems right  so how is it in web dynpro java ?
    thanks

    Hi Jeschael,
    thanks for the reponse.
    When I create the model, I give the default logical system names and on the next screen I give the
    ip address of the backend system, client , login, password etc
    Even though the logical system names wud be same in Dev, Test and Prod systems, the ip address, login password is different so how do I give it ?
    thanks
    B

  • Query based on production order,receipt for production and issue for produc

    hello  sap experts i need a query on
    this is my query but iam not getting correct result could anypne help out  any relation is wrong in this pls verify it and reply asap .
    SELECT T0.[DocNum], T0.[ItemCode], T0.[PlannedQty], T1.[ItemCode], T1.[PlannedQty], T3.[Quantity], T5.[Quantity]
    FROM OWOR T0  INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry, OIGN T2 INNER JOIN IGN1 T3 ON T2.DocEntry = T3.DocEntry, OIGE T4 INNER JOIN IGE1 T5 ON T4.DocEntry = T5.DocEntry
    WHERE T1.[ItemCode]   =  T3.[ItemCode] and  T1.[ItemCode]   =  T5.[ItemCode] and T0.[PostDate] between [%0] and [%1]
    GROUP BY T0.[DocNum], T0.[ItemCode], T0.[PlannedQty], T1.[ItemCode], T1.[PlannedQty], T3.[Quantity], T5.[Quantity]
    ORDER BY T0.[DocNum]
    regards
    Jenny

    Hi,
    Here is another suggestion.
    select t0.docnum,
    case 
    when t0.status = 'P' then 'Planned'
    when t0.status = 'R' then 'Released'
    when t0.status = 'L' then 'Closed'
    when t0.status = 'C' then 'Cancelled'
    else t0.status end as 'Production Order Status',
    t0.ItemCode as 'Parent Item', t0.PlannedQty as 'Planned Parent Item',
    T1.ItemCode as 'Component Item', T1.PlannedQty as 'Planned Component Item',
    (select T2.Quantity
    from ign1 t2
    where t0.itemcode=t2.itemcode and t0.docentry = t2.baseentry) as 'Received End Product',
    case
    when t1.issuetype = 'B' then 'Backflush'
    when t1.issuetype = 'M' then convert(varchar(15), t3.quantity)
    end as 'Issued Component Item'
    FROM OWOR T0
    INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry
    left join ige1 t3 on t1.docentry = t3.baseentry and
    t1.linenum = t3.baseline
    Somehow I get the feeling it would make more sense to have it in 2 separate reports. But if it works for you it's good.
    Let us know how it goes and if these are indeed the reports you are looking for.
    Jesper

  • I need to restore my contacts to my iphone 4 from icloud but when following early instructs to turn off contacts in icloud and then turn back on all that happens is the turning off contacts image just hangs for ever and never turns off - dont know what to

    I am trying to restore my contacts from icloud to iphone 4 but when trying to switch off contacts in icloud first to switch back on it just hangs for ever - dont know what else to do - help please

    I am trying to restore my contacts from icloud to iphone 4 but when trying to switch off contacts in icloud first to switch back on it just hangs for ever - dont know what else to do - help please

  • How do you turn off the slow motion mode for safari and other apps?

    I would love to be able to run other apps at regular spped while waiting for them to lode, ect. How do I change this?

    I think your answer is there:
    http://www.wired.com/gadgetlab/2013/10/how-to-use-os-x-mavericks/#slideid-227971

  • Game Center with multi-player games/ turn based

    Hi All
    I seem to have a problem with the concept of the Game Center and exactly what it's supposed to do. If I am being a thicky, please tell me!!
    My Wife has an Ipad, my daughter an Ipad mini, son has an Iphone 4S and I have just bought a macbook pro. I have just started to work away and thought it would be a great family thing to play games against each other but this games center doesn't seem to be for this! I have added all 3 of them as friends on the center and thats about all I can do!
    When I goto the 'my games' on my pro, it says I dont have any games and I can download them from the app store, when I click the link, I get a blank screen come up with no games.
    When I goto ITunes and try to download a multiplayer turn based game it downloads but I cant do anything with it (I did this with scrabble, a hang man game and Uno).
    Are all these different hardware types incompatable to each other with game center?
    How do I get games on there?
    Are there any real time turn based games that will fullfill what I want? I have a go, then one of my family members does the same, even though we may have to wait a few hours to do the next turn. It doesnt have to be all 4 of us, maybe run 3 games at once with myself against each of my family.
    Thankyou in advance
    Andy

    Your family can play each other by purchasing the app on their own devices – but you'll be left out. There is a difference between buying apps from the iTunes Store and using the App Store on your Macbook Pro (known as the Mac App Store).

  • Best way to implement a countdown timer for a turn based LCCS game

    Hello,
    I am trying to build a turn based game and sketching out the high level map, so I can focus my efforts towards the direction I should be digging.
    One thing I have not seen much in the sample apps is how a turn based game is best handled.
    For example, a countdown timer. Should it be a shared property? Or a Baton which is supposed to manage workflows and has a timeout property?
    Or, should I forget those two, and time this on the server, although if it would become popular keeping track of all the times in the rooms would cost an arm and leg. Would love to hear some best practices on this.

    good idea.
    Which one or all of them?
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to
    suffering - Yoda. Blog - http://www.computerprofessions.co.nr

  • Web based Game

    Hi Friends.
    I want to design a web based game. There is a server and two clients. Each client is a player and the server will handle the collaboration between them. I am using Netbeans and jsp.
    First client one will type the url of server and gets connected. Then it has to wait until second client connects. When second client also connects, then I should update the browser window contents of client one. How can I do this?
    If you did not get the quesiton, please e-mail me at [email protected] I shall explain you more clearly. Please help me at your best.
    Thanks.

    A server cannot push to the client, but you can use AJAX to poll to the server.
    Mailing is meaningless. If you feel you have more to explain, just post it here at the dicsussion forum. It's not a contact advertising forum.

  • QuickTime player turns movies white

    I have the new intel Mac Pro and the QuickTime player turns the movies that I need for homework white, it says that I need a third party software then it takes me to a page of them but doesnt say which one I need, I downloaded one of them but it still doesnt work. Im pretty sure I have Quicktime 7.1 but I downloaded the newest version 7.3.1 again just to make sure and it still doesnt work. One of the videos plays audio but just white video, the other one has nothing. One of the video clips has a v210, Integer (Big Endian) Timecode codec and the other is DVCPRO HD (1080i60) codec. They are not long in length only a few seconds but when I open them they just turn white. Help me please!

    It could might be that because your MacBook is brand new it may not have the codecs needed to play the files. I had problems playing avi (white screen with sound). If you download a few third party codes they may help. I loade up 3ivx (www.3ivx.com) and Divx (www.divx.com) and they did the trick. These are both UB and solved my problem. But if they are some fancy new codec only playable with the software that created it mayby a player other han Quicktime will play them. I'm not realy familiar with the codecs you mentioned and not sure if they are codecs that can be contained as an avi format. VLC (www.videolan.org/) plays almost anything.

Maybe you are looking for

  • Runtime Dump solution required

    when running the program in background it gives short dump at a remote function call(CALL FUNCTION 'RFC_MAIL'               DESTINATION 'CC_MAIL'        EXPORTING           USER = E_MAIL_USERS-UNAME        TABLES           MAIL = MAIL_TAB .) It was l

  • Safari won't load after software update (iTunes/Java)

    Hello Gang: My wife accepted some automatic updates last night on her G4 iBook and we have problems. Now running down the Dashboard - Safari, iTunes, mail, system preferences, and iChat will not lauch nor can she empty the trash can. Can someone plea

  • Read a file and insert rows into table

    Hi, i would like to know how read a file (expl.txt) with the utl_file package and after insert each row into the table (dataID). ie : file /tmp/expl.txt is containing : id1 id2 describe 2 3 test1 6 5 test2 4 7 test3 and table dataID ( id1 number, id2

  • Problem connecting to SVN repository from Safari, works with FF

    *Hello guys,* I have a problem with Mac at work. I need to connect to internal SVN repository (https) first with Safari to see if everything is ok and then with my development client/tool - Eclipse. Neither works! It just keep connecting and it does

  • Transfering data from a slave drive

    I have arch installed on one of my HDD and windows xp on a separate SATA drive. Will I be able to transfer data from the windows xp HDD to linux? The filesystem I'm using for linux is XSF and I have NTFS.