Commit Graph

28 Commits (f402ae36afee53b2438d852651503bcfaaa5dcbe)

Author SHA1 Message Date
Tibor Bizjak f402ae36af Added doc strings to chess.py 2019-09-10 23:27:31 +02:00
Tibor Bizjak 661e87715a Added cookies 2019-09-10 22:29:59 +02:00
Tibor Bizjak fdbd4d2f09 Created backend 2019-09-10 22:01:20 +02:00
Tibor Bizjak 9766116a99 Changed template, forgot to commit 2019-09-10 21:52:38 +02:00
Tibor Bizjak 3d9f1aaf94 Fixed performance issues caused by deepcopy 2019-09-10 21:42:55 +02:00
Tibor Bizjak d0bbc4a14a Added history managment 2019-09-10 21:36:49 +02:00
Tibor Bizjak 6f6791e30e Created initial chess template 2019-09-10 18:48:06 +02:00
Tibor Bizjak d4a9528127 Changed Piece string repr 2019-09-10 18:47:34 +02:00
Tibor Bizjak f9431d8add Added algebraic notation move method, fixed some bugs 2019-09-10 16:28:12 +02:00
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