You know the position of two knights(horses) on a chess board (8x8 size), determine if they can attack each other or not.
Example: white knight stays on D4, black is on E2. They can attack each other.
go test -bench .
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
You know the position of two knights(horses) on a chess board (8x8 size), determine if they can attack each other or not.
Example: white knight stays on D4, black is on E2. They can attack each other.
go test -bench .