You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm a beginner programmer, and I have encountered a problem as described in the title. I have also checked the implementation, which is as follows: get(square: Square) { return this._board[Ox88[square]] || false }
Should it be like this? console.log(game.get('a6')); // prints false
The text was updated successfully, but these errors were encountered:
Hi @GienKu. Welcome to programming and thanks for the report!
It looks like you found a typo in the code that has been there for over a year. Looking at it with fresh eyes (and with TypeScript) in mind, it may be more idiomatic for get to return a Piece | undefined. I'm going to leave this open for a few days while I decide on what to do.
Hello, I'm a beginner programmer, and I have encountered a problem as described in the title. I have also checked the implementation, which is as follows:
get(square: Square) { return this._board[Ox88[square]] || false }
Should it be like this?
console.log(game.get('a6')); // prints false
The text was updated successfully, but these errors were encountered: