mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
I don't understand
This commit is contained in:
@@ -132,6 +132,7 @@ module.exports = class ChessCommand extends Command {
|
|||||||
for (let i = 0; i < 64; i++) {
|
for (let i = 0; i < 64; i++) {
|
||||||
const piece = gameState.pieces[`${cols[col]}${row}`];
|
const piece = gameState.pieces[`${cols[col]}${row}`];
|
||||||
const prevGamePiece = prevGameState ? prevGameState.pieces[`${cols[col]}${row}`] : null;
|
const prevGamePiece = prevGameState ? prevGameState.pieces[`${cols[col]}${row}`] : null;
|
||||||
|
console.log(prevGamePiece);
|
||||||
if (piece) {
|
if (piece) {
|
||||||
const parsed = this.pickImage(piece);
|
const parsed = this.pickImage(piece);
|
||||||
if (prevGameState && !prevGamePiece) {
|
if (prevGameState && !prevGamePiece) {
|
||||||
|
|||||||
Reference in New Issue
Block a user