Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Chess Game On Oracle Form 6i

AdeelFeb 9 2011 — edited Feb 12 2011
Hi Friends

I have created chess game on Oracle Developer Form 2000 6i & my problem is that i have created some function for moving of Bishops, Kings, Queen, Knight etc. on Push Button and my Function of Knight is ..

FUNCTION check_move_knight(p_from in varchar2, p_to in varchar2) RETURN BOOLEAN IS

BEGIN
If
abs(substr(p_from, 2,1) - substr(p_to, 2,1)) = 2 and
abs(substr(p_from, 4,1) - substr(p_to, 4,1)) = 1
or
abs(substr(p_from, 2,1) - substr(p_to, 2,1)) = 1 and
abs(substr(p_from, 4,1) - substr(p_to, 4,1)) = 2

then
return true;
else
return false;
END IF;

END;

I want to write Function of King and Queen please tell me which type of function i can write on form ... :)

Thanks & Regards
Adeel
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 12 2011
Added on Feb 9 2011
4 comments
498 views