iterami/Docs.htm/common HTM Projects/chess.js/chess_threat(args)
- Returns true if any of the inputted squares are threatened by the other player, 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
|
id
|
| string
|
player
|
| number 0 or 1
|
squares
|
| array of numbers 0-7
|