Skip to content

Commit cb85f05

Browse files
committed
knight movement
1 parent afb02aa commit cb85f05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: knight_move.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
// x and y direction, where a knight can move
3+
int DSIZE = 8;
4+
int X[] = { -2, -1, 1, 2, -2, -1, 1, 2 };
5+
int Y[] = { -1, -2, -2, -1, 1, 2, 2, 1 };

0 commit comments

Comments
 (0)