I have a State class that I want to be my nodes in the graph and I have a Move class that I want to be the edges between states. My State class just holds some data and I can get to other states by applying a Moveto it which is simply a class with some information on how to get to that next state.
For example from state1, state1.applyMove(move1), takes me to state2
I'm not sure what type of graph this would be (undirected, directed?) and what information I would have to add to my current classes to implement a graph structure.
Stateclass needs two fields:State left; State right;that indicate the result of movingleftandright. Without more information it's hard to say. - Paul BoddingtonMoveobjects are there? 4? (e.g. up, down, left, right). - Paul BoddingtonMovehas aString direction(up, down, left, right) and aint piecewhich is just some information on how to get to the next state. - Brejuro