iterami/Docs.htm/common HTM Repos/chess.js/chess_check_diagonal(args)
- Checks if there are any pieces in a diagonal direction starting at a point.
- Returns true if pieces are found, or else returns false.
- Can optionally accept a specific board as an array of strings, or else will just use the board from the game id.
| board
| void 0
| array of strings
|
| file
|
| number 0-7
|
| dx
|
| number 0-7
|
| dy
|
| number 0-7
|
| id
|
| string
|
| loopstart
|
| number 0-7
|
| loopend
|
| number 0-7
|
| rank
|
| number 0-7
|