27 Commits

Author SHA1 Message Date
f1962503b8 Include a serde feature in the shared crate 2024-03-23 13:36:28 +01:00
3d93bf0fda Deny moves without any equal sign 2023-03-28 10:43:29 +02:00
1311897416 Tweak precedence handling in the parser 2023-03-25 18:15:54 +01:00
55848c5b36 Fix tests 2023-03-25 13:54:25 +01:00
0288254f75 Test if an expression is placeable in an existing board 2023-03-25 12:58:08 +01:00
ac7c9b30de Detect unique chains 2023-03-23 17:18:59 +01:00
8199cffdf1 Keep signs when evaluating the expr tree 2023-03-21 20:20:56 +01:00
5a8d4676f7 Handle TileTake messages 2023-03-21 10:22:03 +01:00
1fc4e10c39 Sync scores between players 2023-03-13 16:49:44 +01:00
4fbe817f71 Reduce default board size 2023-03-10 10:32:32 +01:00
60e4713f7f Send the complete board when joining a room 2023-03-07 11:49:20 +01:00
091aa81e70 Fix Clippy lints 2023-03-07 10:33:52 +01:00
b49d7b7995 Evaluate in place expressions
This solution gives similar performance results than the tree based one,
mostly because of the intermediate vectors.
2023-03-05 15:14:42 +01:00
2e862bdf58 Try several operator counts 2023-03-02 21:35:32 +01:00
1472e9f6d8 Draft generation of valid AI movements 2023-02-26 14:06:28 +01:00
3accb03ae5 Fix Clippy lint 2023-02-25 14:14:04 +01:00
ec6542aa52 Allow joining an existing room and validating tile placement 2023-02-23 21:00:00 +01:00
f1564ca6e3 Allow RngDeck to be passed between threads 2023-02-23 20:30:13 +01:00
8943d1d898 Randomize the deck of tiles 2023-02-12 21:01:38 +01:00
ea6572dca2 Add a way to detect chains 2023-02-10 21:08:52 +01:00
0b2fa63941 Add additional helper functions to test if the tiles are aligned or not 2023-02-10 21:08:52 +01:00
7fd8d54b34 Separate the width and height of the grid 2023-02-10 21:08:26 +01:00
2920e6614f Make the is_contiguous check more robust and readable 2023-02-10 20:35:53 +01:00
e67a28d110 Refactor with a Position2d struct 2023-02-10 20:32:56 +01:00
016ca31815 Use the constant for the board size 2023-02-01 11:52:37 +01:00
eaa386df88 Add missing import in tests 2023-01-31 18:55:12 +01:00
fe671b8682 Initial commit 2023-01-26 17:21:14 +01:00