Ispend over 10 hrs building this game for a class project , the knight is suppose to move in a L shape pattern but im have some trouble getting it to move in the right spot.
any help would be appreciated
source code is uploaded
GAME1 class
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
FroglegPosted Apr 18, 2011, 7:01 PM
It is not finished in as far as it does not check for all invalid moves ( I have done approx half as an example)
Also included is a drawing of available moves numbering
kevin drummondPosted Apr 18, 2011, 10:29 AM
thanks
FroglegPosted Apr 18, 2011, 3:30 AM
When i hit space key, the chessboard corrupted - so I made a single image of squares to overcome that.
After a quick look, it sometimes works - the first space key press, but the second press does nothing
So basically you want the knight to move to any allowable random position ?