Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic pawn promotion to Q,R,B,N #349

Closed
wants to merge 0 commits into from

Conversation

asutosh-147
Copy link

#348

chrome_HtDWXq1cw3.mp4

Hii @hkirat , just added this pawn promotion logic, pls review it when you have some time

Copy link
Collaborator

@siinghd siinghd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you fix the lint ? cannot focus on the changes

} | null)[][];
socket: WebSocket;
}) => {
console.log('chessboard reloaded');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove the console log?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i tried to fix the lint issues using yarn format but the main branch doesn't have all files formatted so it changed all the formatting what should i do?

const captureAudio = new Audio(CaptureSound);
const labels = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'];
const [canvas, setCanvas] = useState<HTMLCanvasElement | null>(null);
const boxSize = 80;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this boxSize is set directly to 80?

previously was

 const boxSize =
      width > height
        ? Math.floor((height - OFFSET) / 8)
        : Math.floor((width - OFFSET) / 8);

@@ -178,7 +191,6 @@ export class GameManager {

console.log(availableGame.getPlayer1TimeConsumed());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove these console logs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants