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

board.cs has an error. #472

Closed
androur opened this issue Sep 4, 2023 · 4 comments
Closed

board.cs has an error. #472

androur opened this issue Sep 4, 2023 · 4 comments

Comments

@androur
Copy link

androur commented Sep 4, 2023

when I open my bot and click human vs bot, it gives me syntax error in board.cs on line 113.

@androur androur closed this as completed Sep 4, 2023
@androur androur reopened this Sep 4, 2023
@androur
Copy link
Author

androur commented Sep 4, 2023

Now when I tried more, it seams that whatever I do, it gives the same error

@Vanny-Chuck
Copy link

Give us the errors so we can help!

@androur
Copy link
Author

androur commented Sep 24, 2023

Exception has occurred: CLR/System.NullReferenceException
An unhandled exception of type 'System.NullReferenceException' occurred in System.Private.CoreLib.dll: 'Object reference not set to an instance of an object.'
at ChessChallenge.Chess.Board.MovePiece(Int32 piece, Int32 startSquare, Int32 targetSquare) in c:\Users\Win10.ANDRIJA\chess chalenge\Chess-Challenge-main\Chess-Challenge\src\Framework\Chess\Board\Board.cs:line 113

@androur
Copy link
Author

androur commented Sep 24, 2023

Nvm, Its because I didn't place board.UndoMove() after board.MakeMove().

@androur androur closed this as completed Sep 24, 2023
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

No branches or pull requests

2 participants