How to save a game  and then load

My final project of BSCS (Bachelor of Science in Computer Science) is a Multiplayer online Board game...Distributed Ludo...
This project is in its final steps and I�m facing some difficulties.
I do not know how to save the game and load it again. Can anybody guide me to the process?

Saving a game is just persisting the data required for the game.
Loading a game means reading the saved data and setting the attributes of the game (and player and ...) to start exactly the point where it was saved.
So the steps to save are
1. Identify the data necessary for retaining the same state when needed.
2. Decide the data file format and structure.
3. Get the snapshot of necessary attributes
4. Save the data using APIs
Steps to load are
1. Read the data using APIs.
2. Set the game attributes.
3. Update the model and view accordingly.
Hope this helps.

Similar Messages

  • How to save appropriate images and then discard the saved images after using.

    Hi,
    The attached program is used for gesture recognition and playing the corresponding audio file for each recognized pattern. It is saving all the images that are captured and is using in pattern matching. if pattern for "A" is captured ,then almost 10 to 15 intermediate images are captured along with pattern "A". If all are pattern matched then audio file of "A" will be played for 4 or 5 times which is not desirable. Also the images saved in the imaq write folder are getting piled up. They should be discarded after they are used up in pattern matching otherwise it would be a waste of system memory. Can anybody  advice in correcting.
    Thanking you. 
    Attachments:
    program help.zip ‏721 KB

    Hi,
    The attached program is used for gesture recognition and playing the corresponding audio file for each recognized pattern. It is saving all the images that are captured and is using in pattern matching. if pattern for "A" is captured ,then almost 10 to 15 intermediate images are captured along with pattern "A". If all are pattern matched then audio file of "A" will be played for 4 or 5 times which is not desirable. Also the images saved in the imaq write folder are getting piled up. They should be discarded after they are used up in pattern matching otherwise it would be a waste of system memory. Can anybody  advice in correcting.
    Thanking you. 
    Attachments:
    program help.zip ‏721 KB

  • How can I get JavaScript to detect if flash is installed and then load a different URL?

    Hi, I've made two versions of the same site, one in flash and one in HTML, but I want the browser to detect what version of flash is installed, if any and then load the appropriate version of my site. I used to have it so that it displays a HTML message within the same window dependant on the whether the user has the right flash version or not and that used to work perfectly, so I think it must be to do with the changes I made to the if and else statements within the checkFlash() function.
    Here's how I've made it so far:
    <head>
         <script language="javascript"> AC_FL_RunContent = 0; </script>
         <script language="javascript"> DetectFlashVer = 0; </script>
         <script src="scripts/AC_RunActiveContent.js" language="javascript"></script>
         <script language="JavaScript" type="text/javascript">
              var requiredMajorVersion = 9;
              var requiredMinorVersion = 0;
              var requiredRevision = 24;
              var flashContent;
              function checkFlash() {
                   var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
                        if (hasRightVersion) {
                             window.open("http://www.yahoo.com");
                        else {
                             window.open("http://www.google.com");
         </script>
    </head>
    <body onLoad="checkFlash()">
    </body>
    but the checkFlash() function isn't working for some reason, please help, much appreciated.

    terryfoster wrote:
    Thanks Nancy O. Your post answered a few questions alas not the one I was after.
    I have a div with overflow hidden.
    Within this I wanted my content to slide in from the left to a positoin on the screen.
    I found the effect I am after on a site - www.hullwebsites.com but I cannot afford to buy a control which is licenced on a per use basis.
    So I am trying to come somewhere close with code of my own or a solution where I pay once for a single developer licence.
    Terry
    Sounds like you need a simple jQuery effect:
    <!DOCTYPE HTML PUBLIC>
    <html>
    <head>
    <meta http-equiv="charset=UTF-8">
    <title>Untitled Document</title>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script>
    $(document).ready(function(){
    var slide = $("#slideIn");
    slide.animate({left:'60px'}).delay(2000);
    slide.animate({left:'-1000px'});
    </script>
    <style>
    #slideIn {
    position: absolute;
    width: 400px;
    top: 50px;
    padding: 20px;
    left: -1000px;
    background-color:#CCC;
    text-align: center;
    </style>
    </head>
    <body>
    <div id="slideIn">
    Hello!
    </div>
    </body>
    </html>

  • How can i control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?

    Sup buddies,
    How can I control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?
    As the project grows in size the load time increases. How does one control not loading all images ,divs,elements etc. until they're
    needed on the timeline? For example some sections are off and only become visible when recalled. My projects slowly grow in size so loading
    all images , is counter productive . My other option would be to create separate htmls but that breaks the seamless user experience .
    TY...Over N Out... 

    hello, kiwi
    quote: "Is there an easy way to burn a completed project to DVD, but keep only the (lo res, lo size) previews on my hard drive?"
    yes.
    maybe,...
    1. you might think of making DVD backups first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    or,
    2. bring in the photographs to hard drive first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    the low rez Previews will stay in Aperture but the high quality Versions will be exported onto DVDs and gone from the hard drive (if you delete the originals).
    another way would be to export small about 50-70 pixel wide high quality jpegs to a folder on your Desktop and import & keep these in Aperture Library as a reference. make metadata to show where the original Project DVDs are stored and DVD filing system used.
    victor

  • How to save a document and allow others to sign too

    Hopefully someone can help me out with this. I've spent a good 12 hours playing with different methods and techniques over the past week and still am trying to get this little bugger sorted out.
    I'm working on some real estate contracts and need to be able to not only sign them, but once the document is signed, continue adding text to the document and allow another to sign it as well, even if that sounds weird to add content after it's signed.
    (I basically am trying to save time by having some presigned contracts that I fill out as needed so I don't have to go through the signing process every time.)
    How can I save a PDF and then continue to add more content later, as well as add more signatures as needed?
    I'm using Acrobat Reader XI for Mac if it makes a difference.
    Thanks!!

    Thanks for the quick response. I'm using an image of my handwritten signature.
    I downloaded a trial of Acrobat Pro, but does it offer more functionality than I can get with simply the reader?
    Similarly, if I have a PDF that won't let me sign it, how can I make it signable?

  • How to save my emails and adressbook files from an old ibook?

    How to save my emails and adressbook files from an old ibook (bought around 2002) ?
    The screen from the old ibook doesn´t work anymore (logicboard problem I guess).
    I saved everything else with starting it in target modus. That worked fine.
    I want to delete the files after that as well, because I wanna give away the old ibook and don´t want anyone to read my emails!
    Little helpers I have:
    A running MacBook
    External Screen (and cables to connect)
    Fire Wire Cable

    Don't know how helpful this will be but I often copy mail from one computer to another, I drag the mail from the mail window to the other computers drop box, then from the other computer double click it and mail asks me what I want to do with it, of course without a screen you'd need to use back to my mac.
    If you don't have back to my mac running, you could set up a second user account on the newer mac, import everything via target mode as suggested by c above, and then drag the mail to the first user account drop box.

  • Using HAL to extract and then load metadata

    hi!
    We are designing a process in which HAL is used to extract a dimension from Essbase and then loaded to another application using a load rule.
    We are struggling with our attributes extraction, we have multiple attributes to an entity and when we extract it from Essbase it creates a string with a comma delimiter. Example
    - Entity1, Store, +, "Attribute1,Attribute2,Attribute3",UDA1
    Any ideas of how to remove the "? I have tried using formulas like Mid(String,1,Len(String)-1) - but it ignores the "
    Thanks

    You could run a macro in Excel's VBA editor that would extract each member of the dim and put each one in a column in a spreadsheet. The macro is ->
    Sub mainSub()
    x = EssVConnect("Sheet1", "admin", "password", "server", "appname", "dbname")
    Set rng = Range("A1")
    vt = EssVGetMemberInfo("Sheet1", "dimName", 2, False)
    If IsArray(vt) Then
    cbItems = UBound(vt) + 1
    For i = 0 To UBound(vt)
    rng.Value = vt(i)
    Set rng = rng.Offset(1, 0)
    Next
    End If
    End Sub
    Of course you would need to have the EssVGetMemberInfo function declared, but it is a nice neet way to extract the members into separate cells in an Excel worksheet. And then it could be imported to a db cube.

  • How do I get games and music on my phone from iTunes

    How do I get games and music on my phone from iTunes

    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/

  • TS3212 i am trying to download itunes 10.7.  i have windows vista 32-bit.  when i click on download.  the pop up window comes up and ask to save or cancel, and then the webpage says thank you for downloading.  it hasn't downloaded it.  what can i do to fi

    i am trying to download itunes 10.7.  i have windows vista 32-bit.  when i click on download.  the pop up window comes up and ask to save or cancel, and then the webpage says thank you for downloading.  it hasn't downloaded it.  what can i do to fix this?

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • I am unable to install itunes. I get the pop-up asking if I want to save or cancel the iTunes64 file. I click save... and then nothing happens. Help!

    I am unable to install itunes. I get the pop-up asking if I want to save or cancel the iTunes64 file. I click save... and then nothing happens. Help!

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/quicktime/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • How do I know games and programs that become free? I want to know the programs and games that become free first first

    How do I know games and programs that become free?
    I want to know the programs and games that become free first first

    You are allowed to have two activated installations so there should not be a problem having working installations on the two machines.  If by chance you have somehow tied up two activations for the one machine you can have Adobe support help resolve that thru chat.
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • HT4314 how can i download games and application on my i phone through computer and internet

    how can i download games and application in my i phone through i tunes with connection of laptop

    Hi grampaz,
    A Windows 7 smartphone does not support HP ePrint Home & biz app if that's what you are referring to.  You can use ePrint with any email-capable device and print to an ePrint enabled printer.  http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02759940&tmp_task=useCategory&cc=us&dlc=en&lang...
    I am an HP employee

  • Whenever I use something which uses Java (for example, an online game) and then click the address bar, it seems that the address bar is disabled.

    Whenever I use something which uses Java (for example, an online game) and then click the address bar, it seems that the address bar is disabled. I cannot highlight or type in the address bar unless I interact with another program and then switch back to Firefox. When I interact with Java again, the same problem persists! Help!
    Sorry, I didn't know what category this should be under, but it's urgent.

    Perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[Troubleshooting extensions and themes]]
    Check and tell if its working.
    Some of your Firefox Plugins are out-dated
    * Update All your Firefox Plugins -> [https://www.mozilla.org/en-US/plugincheck/]
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

  • TS1702 I can't install apps directly from my ipad. It says "can not connect to the iTunes Store". However I can load them on my i touch and then load the app Thursday wifi. Any ideal?

    I can't install apps directly from my ipad. It says "can not connect to the iTunes Store". However I can load them on my i touch and then load the app Thursday wifi. Any ideal?

    You will need to contact iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I want to loan my ipad to my husband for the summer. If I back it up, restore to factory settings and then load it is if it is his will i be able to get all my apps back?

    I want to loan my ipad to my husband for the summer. If I back up my ipad, reset my ipad to its factory settings and then load it on his imac will I be able to get my apps back later?

    You can backup your iPad to your computer then after that restore it to its factory default. Your husband will be able to use it like a brand new iPad and when he is done then you can plug it back into your computer and restore it to your backup. Everything should be there for you.

Maybe you are looking for

  • To launch BEX workbook in a portal framework page

    Hello Experts- I have created a transaction iview RRMXP with a workbook id as parameter. Assigned it the BI user role. Event though in iview properties , Launch in New Window is set to Dispaly in Portal content area. The workbook opens in a new windo

  • How to read long line from text file

    Hi, I just faced problem when reading a big text file. BufferedReader br = new BufferedReader(new FileReader("D:\\afile.txt")); String str; int i; while ((str = br.readLine())!=null) i++; //do some work here... ...This code throws exception: Exceptio

  • Mouse position over text frame

    Hello, Is it possible to work out the insertion point in a text frame by having just the mouse postition? Thanks.

  • Material  not maintain by purchasing

    hi guys when i tried to convert the planned order into purchase requesation for material type semi finished.but te system show error " material not maintained by purchasing " but i maintain purchasing view for the same material . pls lighten me with

  • ICloud Drive has stopped responding

    I get this message when I try to open iCloud Drive in icloud.com in Safari