A chessboard has 64 squares arranged in eight rows of eight. The only moves that a King can make are from the square on which it is standing to an adjacent square. Find the total number of moves, from all possible positions, that the King can make.
Thank You
Thank You
-
If the king is in the middle (not on the edge or corner), there are 8 possible move (up, down, left right, 4 diagonal). And there's are 6x6 (8-2x8-2)where he can make those 8 move. So, 6x6x8 = 288
If the king is in the edge. but not corner, he can move 5 possible direction, and there 6x4 position in the edge. So 6x4x5=120
If the king is in the corner, he can move 3 direction, and there's 4 corner in the chess board. So, 3x4 = 12
Total= 288+120+12=420
If the king is in the edge. but not corner, he can move 5 possible direction, and there 6x4 position in the edge. So 6x4x5=120
If the king is in the corner, he can move 3 direction, and there's 4 corner in the chess board. So, 3x4 = 12
Total= 288+120+12=420