-
Notifications
You must be signed in to change notification settings - Fork 601
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
Conversation
There was a problem hiding this 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'); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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);
apps/ws/src/GameManager.ts
Outdated
@@ -178,7 +191,6 @@ export class GameManager { | |||
|
|||
console.log(availableGame.getPlayer1TimeConsumed()); |
There was a problem hiding this comment.
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?
143b55e
to
84cfdb5
Compare
#348
chrome_HtDWXq1cw3.mp4
Hii @hkirat , just added this pawn promotion logic, pls review it when you have some time