Commit Graph

19 Commits (fbf001a9b2ff138a01f4743822e3b3d86f6a137e)

Author SHA1 Message Date
Tibor Bizjak fbf001a9b2 Added logic so move is invalid if it opens a check 2019-09-10 15:22:15 +02:00
Tibor Bizjak 582a635e17 Added is_check and is_mate methods and helper method all_legal_moves 2019-09-10 14:30:43 +02:00
Tibor Bizjak 4aa67bd830 Added castling logic, fixed en passant and promotion 2019-09-10 14:01:17 +02:00
Tibor Bizjak c0f2df0b59 Added en passant and pawn promotion logic 2019-09-10 13:08:06 +02:00
Tibor Bizjak 1237549567 Added en passant to possible moves 2019-09-09 14:10:55 +02:00
Tibor Bizjak 8256ba1bf6 small fixes 2019-09-06 19:43:35 +02:00
Tibor Bizjak e68196be39 Added parser for algebraic notation and turn variable to Game class 2019-09-06 17:10:43 +02:00
Tibor Bizjak dad2fc7d58 Further refactoring of possible_moves and helper functions 2019-09-05 19:16:58 +02:00
Tibor Bizjak 0b16fabcd8 Refactored possible_moves method 2019-09-04 21:05:22 +02:00
Tibor Bizjak 6d1f9d06dc Added move method and supporting methods 2019-09-03 23:43:32 +02:00
Tibor Bizjak e93d09f939 Added possible moves for king and pawn 2019-09-03 23:33:24 +02:00
Tibor Bizjak ad7ad5e066 Added function to list possible moves 2019-09-03 22:44:48 +02:00
Tibor Bizjak d1d8362ee4 Added occupying method and eq for Piece class 2019-09-03 21:01:02 +02:00
Tibor Bizjak fcd2f7d62a added is_empty method, cleaned Game repr 2019-09-03 20:50:52 +02:00
Tibor Bizjak 8868e919b5 Added Piece class 2019-09-03 20:46:59 +02:00
Tibor Bizjak dab851ca07 Added game repr 2019-09-01 21:29:25 +02:00
Tibor Bizjak d757eafe2f Updated .gitignore 2019-09-01 16:53:29 +02:00
Tibor Bizjak 3dba52f781 Created Game object 2019-09-01 16:52:51 +02:00
Tibor Bizjak 87c1451df1 Initial commit 2019-09-01 16:04:34 +02:00