+ Reply to Thread
Results 1 to 7 of 7

Need Help : Chess Queen & King Movement

  1. #1
    Registered User
    Join Date
    02-06-2016
    Location
    India
    MS-Off Ver
    2010
    Posts
    4

    Need Help : Chess Queen & King Movement

    Hi All ,
    i am trying to show chess moves in a excel file. I have created a sample move for Bishop by using Aboslute Distance Logic .
    Can any one please help me getting KiNG & QUEEN move .
    I would be really thank full to you.
    Attached Files Attached Files

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Need Help : Chess Queen & King Movement

    For king-
    Please Login or Register  to view this content.
    For Queen-
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Registered User
    Join Date
    02-06-2016
    Location
    India
    MS-Off Ver
    2010
    Posts
    4

    Re: Need Help : Chess Queen & King Movement

    Thanks a lot Sir .

    Can you just give me the logic ? Thought process behind your thinking.

  4. #4
    Registered User
    Join Date
    02-06-2016
    Location
    India
    MS-Off Ver
    2010
    Posts
    4

    Re: Need Help : Chess Queen & King Movement

    Can you please explain the logic. Just one logic would work.

    Moreover, cant we make it simple by just Absolute & AND functions

  5. #5
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Need Help : Chess Queen & King Movement

    KING
    Formula-
    Please Login or Register  to view this content.
    This formula returns TRUE if an one of the following conditions satisfy-

    1. AND($B3=$A$1,C$2=$B$1)
    This checks if the cell is the position where the king is currently residing.

    2. AND(ABS(C$2-$B$1)=1,ABS($B3-$A$1)=0)
    This checks if the cell is one box to the right or to the left of the current position of king. This is because if it would be one box towards the right or left, difference between x coordinates will be 1 and for y it will be zero.

    3. AND(ABS(C$2-$B$1)=0,ABS($B3-$A$1)=1)
    This checks if the cell is one box upwards or downwards of the current position of the king. This is because if it would be one box up or down, difference between y coordinates will be 1 and for x it will be zero.

    4. AND(ABS(C$2-$B$1)=1,ABS($B3-$A$1)=1))
    This checks if the box is one box away diagonally. This is because if the box is one box diagonally then x distance would be 1 and y distance would also be 1.

    This thus covers all the possible positions of the king.

    Similarly for the queen, instead of using distance to be equal to 1 box, it can be any distance, so the condition of distance equal to 1 is replaced by condition of distance <>0 i.e. any distance not equal to zero. And the last condition of 1 step diagonally as used in the king, has been changed to the condition you used for the bishop.

    I hope this makes it more clear

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Need Help : Chess Queen & King Movement

    Hi
    Try these formula to get the movements of Bishop, Queen, King, Tower and Horse
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See the file Chess Moves.xlsx
    You can move the Chess table but you must select from $B$3

  7. #7
    Registered User
    Join Date
    04-27-2021
    Location
    Little Rock, AR
    MS-Off Ver
    MS Office 2016
    Posts
    1

    Re: Need Help : Chess Queen & King Movement

    Hi! I was wondering if you had the formula for the Knight (horse)? Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Swiss Pairing algorithm in excel to organize a chess tournament
    By muhendisOE in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-07-2022, 11:24 AM
  2. how to get the chess notations in columns?
    By sumesh56 in forum Excel General
    Replies: 38
    Last Post: 05-01-2014, 07:53 AM
  3. Eureka!!! but I'm not running to the King's Palace butt-*****...
    By EurekaMedes in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-31-2012, 07:18 AM
  4. [SOLVED] movement
    By Ross in forum Excel General
    Replies: 6
    Last Post: 09-25-2005, 09:05 AM
  5. [SOLVED] TWO IF-salesperson sells Queen
    By Bel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-25-2005, 07:05 PM
  6. how do i simulate a king queen or jack playing card in excel assum
    By I'm an excel nut... in forum Excel General
    Replies: 2
    Last Post: 02-12-2005, 01:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1