Need back and forward functions for moves

I have a working tictactoe game with implemented back and forward moves buttons, but i don't have any idea how to create the two functions using linked lists. can anyone please suggest these functions and provide some code snippets?

Java4Geek wrote:
that's the problem! i'm not using anything for move storing (yet) because I am confused about what exactly needs to be stored for a move. should be something like a node of (player, player's move, opponent's move)?why would you want to store the move AND the opponent's move in a single node? (not saying you're wrong, just wondering why you'd want to do that.)
Think about the information that you'd need to know in order to go backward or forwards.
Would you need to know which player made the move?
Would you need to know what the player's move was?

Similar Messages

  • Mobile wifi mouse back and forward functions don't work

    I just bought the hp wifi mobile mouse model MOWFFKUL and back and forward functions don't work and it's driving me crazy. I bought it for these specific functions. At first I thought that it was a broken mouse. So I went and returned it, got back home, and the same thing. I set the side buttons to other functrion options and they work. What the hell??? just the back and forward buttons don't. I'm losing my mind big time because I REALLY NEED those buttons/functions to work!! All the regular top buttons functrion fine, it's only the back forward setting that DOESN't WORK.

    I restarted my laptop, and the buttons worked! For only 2 minutes. Then nada ever again. What a POS. Come on HP, give a solution. I bought and returned it twice, which makes this my third wifi mouse. What a waste of my time. I think I'm just gonna return this mouse and forget the wifi mouse. Functionality is more important than a freed up USB port. I bought it for the forward/backward buttons specifically. HP used to make wonderful products, but this experience bring that into question now.

  • Why have my back and forward functions stopped working?

    My forward and back arrows have stopped working and I am not able to go back or forward even with a mouse. The mouse is alright with all other browsers.

    Using the " Safe Mode " the issue of no back or forward arrows or functions, now is the question of why did they stop? I don't have a clue as to why. The problem started just before going to 8.0.1 and it was fine always up 'till all of a sudden the issue reared its ugly head.

  • Is there a way to disable the swiping back and forward for safari?

    It is the most annoying thing in the world to be surfing the web, press back then while trying to move around the page be forced forward because of this stupid swipe back and forward function. Is there some way to disable it or should I just burn my ipod?

    Sorry, but this doesn't seem to be an iTunes for Windows question. Perhaps you meant to post in the iPod touch forum?

  • How to use Preview.app 'Back' and 'Forward'

    I often have to read PDF articles with endnotes in Preview, so I need to quickly switch from a footnote in the text to the end of the document. I would like to use the 'Back' and 'Forward' shortcuts to move between a point in the footnotes and back to my place in the main text.
    But I can't figure out exactly how they work. For example. what defines the point you return to when you press 'forward' to the end of the text, and then 'back'? Do I have to click in the text, or remain in a particular part of the text for a certain amount of time before Preview sets that as a location to go back to (or forward from)?
    I've considered using Skim for PDFs with endnotes, as it has a split view that lets you view two parts of a PDF simultaneously. But I much prefer Preview's UI.

    Another solution would be to open two instances of Preview so you can read different pages of the docuemnt side by side.
    However, this is a little more complicated. Once the document is open, you have to start Terminal and enter
    "open -n "
    and then drag the file from the Finder into the terminal window which will add the filename and its path.
    The result should look like
    "open -n /Users/xxx/Desktop/file.pdf"
    then press return and you get a second instance of Preview.

  • Move back and forward through Quiz questions...

    Hello,
    I need to be able to let individuals move back and forward through quiz questions after they have answered them without the need to re-answer the question.
    Does anyone have any suggestions on how I could do this in Captivate 6.
    Thanks,

    Thanks for the reply!
    I should have been a bit more specific and provided an example...
    Question 1 and 2  are answered correctly and feedback box is shown each time - they then get stuck on question 3 so need to use the back button to go back through past the answered questions to the main information screens to find the answer and then need to use the forward navigation button to move back to the third question this will result in them moving through question 1 and 2 however we do not want them to answer these again.
    The individual must answer every question correctly to pass the course.
    Thanks,

  • Is there a way to move "back" and "forward" through the Library?

    Is there a way to move "back" and "forward" through the Library?
    For example, I'm editing Symbol_1, then I move to Symbol_22. Now to get back to Symbol_1 I need to find it again in the Library and double-click on it. Is there a shortcut for that?

    No, but you can always use the library search option to widdle down the number of items displayed. It'd be a good feature request as I find myself hopping between specific movieclip depths on common clips often. Sort of like a clip/depth bookmark.

  • How do i make the back and forward buttons function? they are visible but not functional.

    I have firefox 8.0.1 and my back and forward button are not working. They are visible but not functioning. I have tried starting in safemode and without any add-ons and the back and forward buttons are still not functioning. What do I need to do to make the buttons functional?

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

  • Three finger or two finger gesture to move back and forward between pages of file only work on safari, unlike with old os. this new lion won't let me do it. Any help?

    three finger or two finger gesture to move back and forward between pages of file only work on safari, unlike with old os. this new lion won't let me do it. Any help?

    I have decided to dedicate this thread to the wonderful errors of Lion OSX. Each time I find a huge problem with Lion I will make note of it here.
    Today I discovered a new treasure of doggie poop in Lion. No Save As......
    I repeat. No Save As. In text editor I couldn't save the file with a new extension. I finally accomplished this oh so majorly difficult task (because we all know how difficult it should be to save a file with a new extension) by pressing duplicate and then saving a copy of the file with a new extension. Yet then I had to delete the first copy and send it to trash. And of course then I have to secure empty trash because if I have to do this the rest of my mac's life I will be taking up a quarter of percentage of space with duplicate files. So this is the real reason they got rid of Save As: so that it would garble up some extra GB on the ole hard disk.
    So about 20 minutes of my time were wasted while doing my homework and studying for an exam because I had to look up "how to save a file with a new extension in  mac Lion" and then wasted time sitting here and ranting on this forum until someone over at Apple wakes up from their OSX-coma.
    are you freaking kidding me Apple? I mean REALLY?!!!! who the heck designed this?!!! I want to know. I want his or her name and I want to sit down with them and have a long chat. and then I'd probably splash cold water on their face to wake them up.
    I am starting to believe that Apple is Satan.

  • Today I updated the OX Maverisk. It turns out that the three finger gesture in the finder( go back and forward) is disabled. How can I get this function back? I love it so much!!!

    Today I updated the OX Maverisk. It turns out that the three finger gesture in the finder( go back and forward) is disabled. How can I get this function back? I love it so much!

    Try System Preferences/Trackpad/More Gestures.

  • Now that iPad has multitasking gestures, why don't they just add a gesture for going back and forward in safari?

    Now that iPad has multitasking gestures, why don't they just add a gesture for going back and forward in safari? Just like in a mac, with the multitouch gestures. The osx Lion got the launchpad idea from the ios, so why don't the ios gets something from osx?

    Send them feedback and make the suggesion. We're just fellow users here, we have zero control over anything Apple does.
    http://www.apple.com/feedback/

  • Does not open default site.Needs retry in favorites. Back and forward arrows do not work

    Facebook is the defaulkt address but, when I open Firefox thw scrren is blank (bar are present, though). This happens after last review
    In addition, back and forward arrows do not work (this has always happened since Firefox 4 beta)

    * First to prevent interferences between current and Beta versions, use a specific [[Managing profiles|profile]] for Firefox 4.0 Beta. In your new Beta profile, you can recover all your customizations from your 3.6 profile. See [[Recovering important data from an old profile]].
    * Then, if it is not fixed, see [[Back and forward or other toolbar items are missing]].

  • History , Back and forward button to be disabled for some pages

    Hi ,
    There are buttons ( history, back and forward) just below the top level navigation in portal.
    Is there a way that some pages can be restricted in History , Back and Forward operations so that some pages cannot be captured with history , back or forward actions in portal.
    Best Regards
    Sid

    Hi Siddharth,
    If we open our framework page there is something called Page title bar. This contains History, Back and Forward button. If we make it disable it'll not be visible in our portal.
    So according to your requirement you can create a new framework page and can make changes in that framework page. Assign this framework page to a portal desktop and use it where you want.
    Please reward the points if it is useful.
    thanks,
    pankaj

  • In Finder , why i can't go back and forward using the trackpad in Mountain Lion?

    In Finder , why i can't go back and forward using the trackpad in Mountain Lion?

    Hi. I also got the same problem but just learnt a way to resolve it. No need for 3rd party software.
    If you don't care much about the Three finger drag gesture, and just want to swipe between pages in Finder and web browsers, please follow these:
    System Preferences/Trackpad/More gestures/Swipe between pages/Scroll left or right with 2 fingers. This option works solely for web browsers.
    In order to swipe between pages in Finder, web browsers and other apps as well,change the option to Swipe with two or three fingers. (3 for Finder and apps, 2 for web pages)
    If you also want to use Three-finger drag to move windows and drag-select:
    The problem occurs once you change to "Swipe with 2 or three fingers", Lion will automatically disable/uncheck the Three finger drag function in Trackpad/Point&Click. Or the other way around, you tick Three Finger drag, Swipe between pages automatically switches to Scroll with two fingers because these 2 functions are overlapped.
    My solution is:
    stick with initial option Scroll with two fingers for navigating between web pages.
    Re-tick Three finger drag in Point&Click.
    Use combination: Option+Swipe 4 fingers for Finder and other apps (although it functions reversely, Swiping left to go backward, swipe right to go forward)
    My current gesture routine:
    - Swipe between web pages: Scroll with two fingers.
    - Swipe between pages in Finder and other apps: Combination Option+swipe 4 fingers
    - Swipe between full-screen apps (desktops): Swipe left or right with 4 fingers
    - Drag select and navigate windows: Three finger drag
    - Mission Control - Swipe up with 4 fingers. (avoid conflict with three finger drag)
    * You can actually use combination Option+Swipe 4 fingers for everything (apps, finder, web pages) but I personally prefer swipe 2 fingers for web browsing. It's just easier and quicker and avoid conflicts with other gestures.
    Hope this help.

  • How to track the Back and Forword functiona on a JFrame

    We are Developing an Application with Java swings.In this we 've used some of the components and are JFrame,JPanel,SplitPane,JButtons and etc.
    In this we've used JButton for the Back and forword function as we have with the I.E.
    So the Problem is that
    when I click Back Button I need to get the Previous JFrame Contents and for Forword I need to get next JFrame Contents the Function are same as back and Forword Functions of Internet Explorer.
    I'tried with Undo() Package but I did not get the Required Output
    Thanks in Adv,

    How about the following:
    1. Creat a top level container (ie window) with menus,
    back/forward buttons etc. using whichever layout
    manager is appropriate.
    2. Create a panel, and add it to this window. Set the
    panel to use card layout manager.
    3. Display all output from your app in the panel, and
    let the window's back/forward buttons call the
    appropriate methods on the card layout manager.
    Thanks for reply,
    But i had done the same thing i.e icreated a top level(using JFrame) for the buttons menus and etc.
    then using the layouts manager.
    created a panel andused cardlayout manager but my problem is taht when i add those conetents(called panel contents of the frame) as component and add it this panel then i am geeting thaierror stating
    java.lang.IllegalArgumentException: adding a window to a container
    so that is the problem i.t it is not get added to the newpanel.

Maybe you are looking for

  • TS3274 I have downloaded the latest version of Itunes to my laptop, but now can't see my iPad and iPhone in iTunes.  any ideas?

    Can anyone give me advice about the question above.  I have downloaded ios7, have downloded latest iTunes and now can't see devices in iTunes.  Using Windows 8 (horrible), which just jumps me into questions about pictures

  • Billing: Foreign trade data missing error

    Hello friends, I have a peculiar problem while trying to release billing doc to accounting. Delivering country is BE and Desination country is DE. I have setup config under Foreign data transportation to pull up default values by maintaining Tcode VI

  • Close PO that has been Good Receipt

    Hi SAP, Our finance users has made a payment to the vendor manually because our plant has not summited the Delivery Order to finance dept to make a payment to the vendor. Now, finance want to close the PO that has been GR because invoice have done ma

  • WBS Element System Status to REL-Release

    Hi, I am looking for a way to set the System Status to REL instead of CRTD- created as soon as the WBS element is created. Can any one please provide their valuable suggestion. Thanks for your help, Satish

  • Installation issue CS2 / CS4

    Goal I have CS4 Design Premium but want to install CS2 Premium for having GoLive. Issue When system starts autoplay to install CS2 Premium I can just choose language (only choice finnish) and then I have 2 error codes and the process ends. Error code