Comments (6)
I am also having the same problem, and what makes it worse is that if the move was a capture, then there is no null piece.
from chess-challenge.
How did you get the console output to collapse like that?
from chess-challenge.
How did you get the console output to collapse like that?
idk it's probably a VSCode setting lol
from chess-challenge.
BUMP. Any1 find solution ?
from chess-challenge.
I fixed it by introduing a variable lastMove.
Then I added this into my evaluate function:
int type = (int)piece.PieceType;
if (type == 0) type = lastMove;
And I also set the lastMove variable before I make the move:
lastMoved = (int)board.GetPiece(move.StartSquare).PieceType;
board.MakeMove(move);
Hope it works!
from chess-challenge.
Hi I've uploaded a fix for the GetPiece function. I apologise for the error!
from chess-challenge.
Related Issues (20)
- Canβt open board HOT 5
- board.cs has an error. HOT 4
- Significant performance boost to IsDraw method HOT 3
- Copying boards/overriding fen strings HOT 2
- Each character in string counts as token HOT 3
- Please select a valid startup item
- Black pawn appearing on h4
- Build errors when trying to run MyBot without changing anything from when downloading it. HOT 1
- Bot Brain Capacity change. HOT 2
- SquareIsAttackedByOpponent is returning true, although the square isn't attacked HOT 1
- Game over every time, even when MyBot won the round. HOT 6
- Final knockout tournament clarification HOT 2
- HOw to set custom Chess position to test bot HOT 2
- Run codes from strings in C# HOT 8
- Submission Deadline Clarification HOT 1
- [Critical Bug] The Token Counter is bugged HOT 5
- bot submission size limit issue HOT 1
- Is there any update on competition? HOT 14
- PGN parser
- Segmentation fault (core dumped) when launching Chess-Challenge v1.20 on Ubuntu 20.04 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chess-challenge.