Originally Posted by
Norm
What do you mean by "back" and "forward"? What data would be needed to implement that? Can that data be put in a new class?
Can you construct a board position from the data in the class?
Then save an object of that class in a LinkedList.
Start with a simple test program to exercise the LinkedList. When you see how to use its methods, then you can use that knowledge to write what you need in your progrm.
Norm, the two buttons should go back to a previous stored move, and respectively forward to a "future" move, in case I went back. I understand how to use linked lists because i studied it, but i have no idea what to store in the linked list's nodes.
should it be (player, player's move, opponent's move) or what? and how to store that? how to call the previous move then? also after i went back a move or more moves, and if a click on the board for a new move, that should destroy all "future" moves and store new ones.