|
|
|
|
|
by ehulinsky
1249 days ago
|
|
The problem is that it needs to check every position that the king can move to as well. Doing it based on pixels would be extremely slow, and doing it based on the math seems like a nightmare, unless I am missing something. |
|
Knight is the easiest, that's just checking (lol) the distance to see if 5-r/2 <= d < 5+r/2.