I did also try to solve this quiz before.
My solution is not as good as Kacper.
Anyway, here is my solution:
{(∧/¨(0
On Sat, Apr 18, 2020 at 09:54:13PM +0200, Otto Diesenbacher-Reinmüller wrote:
4: Knight Moves
(...)
*. Given a 2-element vector representing thecurrent square for a
knight, return a vector of 2-element vectors representing (in any
order) all the squares that the knight can moveto. Hint: The ou
4: Knight Moves
Consider a chess board as an 8×8 matrix withsquare (1 1) in the upper
left corner andsquare (8 8) in the lower right corner. Forthose not
familiar with the game a chess, the knight, generally depicted as a
horse, canmove 2 spaces right or left and then 1 space upor down, or 2
space