Files

20 lines
635 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# satranc.js — main() (satır 353)
[← satranc.js](index.md) · [← Master](../../wiki.md)
Parça 2/2 · [önceki](main.md)
```javascript
var txRenk = tas.charAt(0) === "B" ? TAS_TX_B : TAS_TX_S;
board.rect(x+4, y+4, CELL-8, CELL-8, bgRenk);
board.text(tasEtiket(tas), x+CELL/2, y+10, txRenk, 0.5, 0.0);
}
if (c2 === 0) board.text("" + (8-r), x+2, y+2, TEXT_DIM, 0.0, 0.0);
if (r === 7) board.text(String.fromCharCode(65+c2), x+CELL-8, y+CELL-10, TEXT_DIM, 0.0, 0.0);
}
}
c.getSubject().openUI(ui);
}
```