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:
Created | Apr 7, 2023 |
Warriors Trained | 6 |
Total Skips | 0 |
Total Code Submissions | 14 |
Total Times Completed | 5 |
Python Completions | 5 |
Total Stars | 0 |
% of votes with a positive feedback rating | 0% of 3 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 0 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 3 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |