This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

cellostar47
cellostar47 presents ...

2014/2/4

Checkers (Need help with!!)

I need help with the static errors that I commented out in the PIECE class.

1640 views / 209 in the last 7 days

Tags: with-source

open in greenfoot
Your browser does not support the canvas tag.
danpostdanpost

2014/2/4

You need to pass the piece that creates the Dummy objects to the dummies, so it can move the proper piece to its location if it is clicked on. Add an instance field ('Piece piece') in the Dummy class and change the constructor to: public Dummy(Piece p) { piece = p; } Then you can use 'piece.setLocation(geX(), getY())' to move the piece.

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.