Commit Graph

56 Commits

Author SHA1 Message Date
c20060b1ca Moved activeColor, fullmoveCounter and halfmoveClock to Log 2019-07-24 07:32:59 +02:00
3d232dd131 Added engine info serialization and integration into MenuBar 2019-07-23 16:28:53 +02:00
delvh
85be1a182b Working on external engine integration, added extra menu
+ EngineUtil for storing engine information
- Changed all UCIListener methods to default
2019-07-23 11:54:43 +02:00
delvh
490db60d6b Added checkmate and stalemate notification through dialog, changed icon 2019-07-23 11:02:34 +02:00
delvh
51f3fd8980 Improved BoardOverlay, disabled color swap in natural-vs-natural game 2019-07-23 10:38:19 +02:00
delvh
69bf97c98e Added dynamic color swap button text 2019-07-23 09:59:22 +02:00
delvh
942475088b Implemented color swapping
+ swapColor method in Board
+ Button for swapping colors in MainWindow
2019-07-23 09:31:20 +02:00
91716e12cf Fixed castling, added castling export to FEN
+ isFreePath implementation in Piece
- Removed isFreePath from Bishop, Rook, Queen and King
+ canCastleKingside and canCastleQueenside methods in King
+ Castling rights record in Board + FEN export

+ equals method in Position
+ UCI 'position startpos' command
- Switched to Java 8 compliance for compatibility reasons
2019-07-22 21:40:25 +02:00
ff68def767 First working UCI implementation
+ bestmove, position and go command implementations
+ Move initialization from algebraic notation
+ FEN string generation
2019-07-22 14:51:24 +02:00
f92715e42f Implemented option setting, added UCIOption class 2019-07-22 08:59:13 +02:00
fd7934f40e Fixed UCI option parsing 2019-07-22 07:29:58 +02:00
77cf661f6f Implemented UCI handshake with engine
+ UCI game start in MenuBar
+ UCI game creation method in Game
- Fixed double game instance bug after starting a new game
+ Name and author parsing in UCIReceiver
2019-07-21 14:35:14 +02:00
bce35fc950 Fixed UCI combo GUI type to support multiple predefined values 2019-07-20 06:48:42 +02:00
1d37a23f2f Added UCIListener, started working on an implementation 2019-07-20 06:36:56 +02:00
9014731426 Added UCIReceiver and UCIListner, implemented a part of the UCI protocol 2019-07-19 22:16:02 +02:00
d1af5a9d58 Working on UCI support
+ UCIHandle class for communicating with an engine through UCI
+ UCIPlayer class for using an engine within the gui
2019-07-19 08:34:31 +02:00
1323286c93 Fixed input listening bug in NaturalPlayer
+ disconnect methods in Game and Player
+ NaturalPlayer removes its MouseListener from OverlayComponent after
the disconnect method is called
2019-07-18 15:01:15 +02:00
3c03f01962 Set white king as MainWindow icon 2019-07-18 11:19:58 +02:00
f7812a5f81 Moved game and board creation to Game 2019-07-17 08:26:51 +02:00
7a4266d4a7 Fixed game state related bugs 2019-07-16 18:24:48 +02:00
ec86d598a2 Fixed UI bugs, added move drawing to OverlayComponent 2019-07-16 15:32:02 +02:00
e37837862f Added alpha-beta pruning threshold to the AI and a configuration dialog 2019-07-16 14:42:10 +02:00
f65d7ae2a3 Moved tests in test source folder, replaced GameModeDialog by MenuBar 2019-07-16 11:58:51 +02:00
7402653f17 Added resource folder to class path, implemented proper texture scaling 2019-07-15 18:16:45 +02:00
5984f4119e Implemented game restarting
+ Restarting method in Game
+ Abstract cancelMove method in Player
+ Stopping calculations in AIPlayer when the game has been restarted
2019-07-14 12:03:45 +02:00
40ef31dd1f Added castling, fixed some minor bugs 2019-07-13 11:38:44 +02:00
54e73f2b85 Made application terminate when GameModeDialog is closed 2019-07-12 13:33:34 +02:00
4f57c34a81 Fixed knight move validation, renamed test 2019-07-12 10:07:02 +02:00
227cd1f628 Added positional board evaluation 2019-07-11 19:57:54 +02:00
26f7d67461 Added move history and pawn promotion
+ Log class for move history
+ LoggedMove class with piece captured by the logged move
- Made move reversion easier
+ MoveType for recognizing special moves
+ MoveType determination during move generation and validation
2019-07-10 18:54:53 +02:00
bde14db4cc Separated board and overlay rendering
+ BoardPane class for managing rendering layers
+ OverlayComponent for drawing overlays
- Renamed BoardPanel to BoardComponent
- Simplified calls in the rendering process
2019-07-09 09:20:30 +02:00
f51c184243 Added multithreading to AIPlayer for better performance
+ MoveProcessor and ProcessingResult classes for handling multithreaded
move calculation
+ Separate package for AIPlayer and its components
2019-07-08 16:44:21 +02:00
0a8a8d481a Fixed some typos 2019-07-08 09:08:10 +02:00
a3125188c1 Fixed rendering
+ Cloning support in Board and Piece
- Using clones for board operations that interfere with rendering
- Fixed repaint calls
+ Unit test for testing board cloning
2019-07-08 06:41:10 +02:00
bbe5fcf13d Fixed checkmate detection, simplified event handling 2019-07-07 21:07:58 +02:00
9ab00fe674 Added simple (yet surprisingly effective) AI player
+ AIPlayer class
+ Evaluation method in Board
+ AI vs AI button in GameModeDialog (produces a rendering delay)
2019-07-07 14:37:33 +02:00
716c84bf49 Added player management and related UI components
+ Game Mode selection dialog
+ Game class for turn management
+ Abstract Player class with NaturalPlayer implementation
- Moved mouse input handling from BoardPanel to NaturalPlayer
2019-07-07 13:53:57 +02:00
7bf4f78b70 Improved package structure
- Renamed the piece package into board
- Moved Board, Move and Position into the board package
2019-07-06 18:05:00 +02:00
eb38fefcd1 Implemented checkmate and stalemate detection 2019-07-06 17:37:55 +02:00
d9573f59da Created a separate UI package
- Renamed Chess to MainWindow
- Moved MainWindow, BoardPanel and TextureUtil into the UI package
2019-07-06 16:37:42 +02:00
3210eda8f9 Fixed bugs in move generation, prepared checkmate recognition 2019-07-06 12:42:21 +02:00
c8ca4e0229 Added move generation
+ Methods for generating legal and pseudolegal moves in Piece
+ Implementations of move generation for every piece
+ Highlighting of available moves for the selected piece in BoardPanel
- Split up the move method in Board to move and attemptMove
2019-07-05 14:14:48 +02:00
55389be39a Optimized BoardPanel and texture loading
- Renamed TextureLoader to TextureUtil
- Moved entire texture handling to TextureUtil
2019-07-04 14:58:15 +02:00
369ad07f1c Added tool panel and event system for check notification
+ GameEvent and GameEventListener
+ Check detection and notification in Board and BoardPanel
+ Tool panel in Chess with a restart button
2019-07-03 11:05:20 +02:00
6abd2bfca8 Fixed board size issues
- TextureLoader does not perform scaling anymore
+ Scaling method in BoardPanel
2019-07-02 22:06:48 +02:00
f15898d29e Fixed king movements with regards to check detection 2019-07-02 20:40:28 +02:00
ba77a66e48 Added check detection
+ Position class and implementation (mostly pieces)
+ King position tracking, check detection and utility functions related
to Position in Board
2019-07-02 20:07:47 +02:00
616ed129a1 Fixed / added positional awareness in pawn movements 2019-07-02 15:16:18 +02:00
32446d4652 Added block checking to move validation
+ Move class
+ Utility methods in Board
+ isFreePath method in Piece with implementations in every subclass

- Pawn movement is still not fully implemented, including promotion, en
passant and movement over two tiles
2019-07-02 13:49:36 +02:00
bae5618f59 Added coordinate-based move validation
+ Simple input handler for testing purposes in BoardPanel
+ Abstract isValidMove method in Piece
+ Coordinate-based implementations of isValidMove in every subclass of
Piece
2019-07-01 21:46:30 +02:00