Skip to content

Latest commit

 

History

History
 
 

chess

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

chess

You know the position of two knights(horses) on a chess board (8x8 size), determine if they can attack each other or not.

Knight move

Example: white knight stays on D4, black is on E2. They can attack each other.

Run tests with benchmarks

go test -bench .