Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Chess movement

Author
Message
Murdock743
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 15th Jul 2003 21:07
Hey every one this is a little difficult and I have no clue on how to do it. I want to program a chess game but have no clue how to ristrict the movement so you can't break the rules ect ect... I am lost and have no clue on how to do this.
Cheers,
Christian
Kanzure
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location:
Posted: 15th Jul 2003 21:17
Make a 2D array. Simpley check if the place the user is moving is valid or invalid (Maybe a 1 for valid, 0 for invalid on the map..)

Look at source for 2D tile engines. That will help!

~Morph/Kanzure
Murdock743
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 15th Jul 2003 21:21
thats all fine an dandy but how do I determine if a knight that moved is valid?
Cheers,
Christian

Murdock743
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 15th Jul 2003 21:27
NVM I figured it out.
thanx
Cheers,
CHristian

Troan
21
Years of Service
User Offline
Joined: 22nd Jan 2003
Location: Inner thought about nothing
Posted: 15th Jul 2003 21:34 Edited at: 15th Jul 2003 21:35
nm then (darn refresh thingy broken)

"Life isnt everthing, its the only thing."
"If a mime get hits by a car, does he scream?"
---------------------------------------------Troan

Login to post a reply

Server time is: 2024-11-24 23:07:40
Your offset time is: 2024-11-24 23:07:40