Draft

Knight moves in 3 dimensions

Description:

Imagine a 3 dimentional cubical chess board. A knight is placed at the center of the cube at (0,0,0). You will be given an x,y,z coordinate. Can the knight reach that point in one move? Return either True or False

Examples: Given coordinate (2,0,1) returns True Given coordinate (-2,1,0) returns True Given coordinate (0,1,2) returns True Given coordinate (-1,1,2) returns False

(0,0,0) will be taken as True. Negative coordinates are valid.

There are 24 total positions the knight can move to: 8 in the xy plane, 8 in the xz plane,and 8 in the yz plane

Similar Kata:

Stats:

CreatedApr 7, 2023
Warriors Trained6
Total Skips0
Total Code Submissions14
Total Times Completed5
Python Completions5
Total Stars0
% of votes with a positive feedback rating0% of 3
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes3
Total Rank Assessments3
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • Argile5 Avatar
Ad