Hi All,
Hoping someone can help me with a little issue I'm having.
I'm using Chess and Grid objects to move my playing pieces around a board(Piece A).
I can work out if the moving piece comes next to another piece(Piece B).
What I need to know is how to get the details of the piece B I'm moving past.
So I have instance variables attached to pieces that tell me the type they are, and If I move move past one I want to know what type it is, but not sure how to reference it.
I've tried things like this but it doesn't work.
Chess(1,1).PieceType
Chess(UID).PieceType
If someone could help me that would be amazing.
Cheers
Chris