-
Notifications
You must be signed in to change notification settings - Fork 892
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
get() method of Chess class returns false instead null #427
Comments
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 Thanks! |
hello. any update on this issue |
greetings! any chance of this being implemented?
|
Fixed in commit 85c049e |
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: