Skip to content

Commit

Permalink
Fix pawn glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Flwrian committed Apr 15, 2023
1 parent 6de5946 commit 5d4b348
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ I am aware that there are more efficient ways to program a chess engine. I am no
- [x] Multiple algorithms for the engine
- [x] You can implement your own algorithm
- [x] Save and load games (FEN and PGN formats)
- [x] Fix weird pawn glitch (A file to H file)
- [x] UCI protocol
## Need to do
- [ ] Add a GUI
- [ ] Add castling
- [ ] Add en passant
- [ ] Add pawn promotion to other pieces than queen
- [ ] Add a timer
- [ ] Fix weird pawn glitch (A file to H file)
- [ ] Add a lot of tests


Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/UCI.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ else if(inputArray[i].equals("btime")){
engine = new Engine(board);
engine.setAlgorithm(new AlphaBetaPruningAlgorithm(depth));
int[] move = engine.play();
System.out.println("info score cp " + move[2] + " depth " + depth);
System.out.println("bestmove " + engine.parseMove(move));

// Move bestMove = board.getBestMove(depth, time);
Expand Down Expand Up @@ -124,7 +125,7 @@ private static void isReady() {

private static void uci() {
System.out.println("id name " + ENGINE_NAME);
System.out.println("id author FlowBot");
System.out.println("id author Florian");
System.out.println("uciok");
}

Expand Down
Binary file modified target/classes/com/UCI.class
Binary file not shown.

0 comments on commit 5d4b348

Please sign in to comment.