Commit Graph
26 Commits
Author SHA1 Message Date
pavel 95c0ccfbd2 Move some functionality into the new Engine mod
This will help with separating the "thinking" logic from the move rules
and stuff.
2021-12-21 21:07:19 +01:00
pavel 802b069269 Add command for manual state setting at engine 2021-12-20 21:46:21 +01:00
pavel ef5719f2f5 Reorganize board code in engine
Just a bit
2021-12-20 21:17:14 +01:00
pavel d80cc79f57 Use destructuring for arg splitting in engine ui
This make the arg handling code less awkward.
2021-12-20 21:13:34 +01:00
pavel 6ee41a112c Introduce movement Rays
These reflect the fact that a piece can't jump over another piece
(unless it's a knight).

Issue #5
2021-12-17 21:25:51 +01:00
pavel 4ae73410bd Implement make_move function on engine 2021-12-14 21:12:59 +01:00
pavel b9f39fa0b4 Implement get_moves command on rs
Issue #1
2021-12-13 18:03:42 +01:00
pavel aa899740c6 Implement basic cmdline UI framework
Issue #1
2021-12-12 12:50:02 +01:00
pavel 6d433a6d01 Create a separate Ui struct 2021-12-12 11:49:06 +01:00
pavel 1f5e58d981 Implement get_legal_moves function 2021-12-11 19:00:09 +01:00
pavel 9e8b633447 Fix clippy suggesting to do something weird 2021-12-11 18:03:49 +01:00
pavel f8c7323b47 Implement std::fmt::Display for board 2021-12-11 17:59:22 +01:00
pavel 7143427dd2 Fix misc clippy suggestions 2021-12-11 17:28:06 +01:00
pavel b5c252bd4d Implement basic frontend-engine interaction
Use a Flask-based Python server as an adapter to the engine's
stdin-stdout inferface.
2021-12-11 14:58:16 +01:00
pavel 57931b29de Add serialization to String 2021-12-05 18:14:16 +01:00
pavel 4f3469b3e3 Change Board state to HashMap 2021-12-05 15:43:40 +01:00
pavel 81626aefec Remove position from Piece struct 2021-12-05 12:08:45 +01:00
pavel 02e7d7e984 Split board-related stuff into board.rs 2021-12-05 11:54:15 +01:00
pavel 458f87fd61 Rename row/column to rank/file
This is how they're "officially" called
2021-12-04 18:54:09 +01:00
pavel e45fd3981a Implement board setup 2021-11-23 22:47:56 +01:00
pavel 72a691de90 Implement initial Pawn setup 2021-11-22 22:42:21 +01:00
pavel cc58260943 Refactor Piece 2021-11-17 22:15:00 +01:00
pavel 51e5228145 Implement basic Piece infrastructure
And the Pawn class
2021-11-14 14:42:53 +01:00
pavel 6279e076ac Initialize rs schach engine 2021-11-10 20:53:13 +01:00
pavel 7edf459485 Revert "Start backend with rocket.rs"
This reverts commit 28011b8f93.
2021-11-09 21:41:29 +01:00
pavel 28011b8f93 Start backend with rocket.rs 2021-08-15 12:07:02 +02:00