Commit Graph

50 Commits

Author SHA1 Message Date
milo c6a20e2bcd begin to incorporate actual blockfish library into webworker 2024-03-05 19:59:14 -05:00
milo 5b0eda58ad improve Bot::think() api 2024-02-23 14:47:51 -05:00
milo a257743f8b no default features for ahash to remove getrandom dep 2024-02-22 19:50:45 -05:00
milo c0a06ecd00 create dedicated Rating type to replace awkward (bool,i32) pair 2024-02-22 18:53:47 -05:00
milo a6f893e448 get rid of some useless pub(crate) syntax 2024-02-22 18:25:42 -05:00
milo 938bed05fc minor code cleanup particularly in TransTable 2024-02-22 18:21:52 -05:00
milo 096957cce3 update versions of deps; remove num_cpus() dep 2024-02-22 17:56:21 -05:00
tali 4ad8f38341 move "is_terminal" and "is_better" logic from node.rs into bot.rs 2023-04-16 19:15:55 -04:00
tali 52d339747a add instrumenting support to Bot, returns basic info about algorithm 2023-04-16 19:04:47 -04:00
tali 1784647146 recognize clearing the bottom matrix row in evaluator 2023-04-16 18:33:34 -04:00
tali 082fa62add fix lints in fish benches 2023-04-16 17:59:10 -04:00
tali a9b86e03c4 fix lints in fish 2023-04-16 17:59:10 -04:00
tali cf9fd27ca0 add comment about copy_queue (non-)usage 2023-04-16 16:38:13 -04:00
tali 04dddcdaa8 drop useless TODO 2023-04-16 15:54:57 -04:00
tali 0fb79906be implement a node transposition table 2023-04-16 15:37:00 -04:00
tali e15637f0dd add benchmark for think() 2023-04-16 15:35:53 -04:00
tali bd840d5705 refactor how suggestion-updates are propagated to Bot and logged 2023-04-16 15:35:50 -04:00
tali 7bb551b362 iteration counter is stored in the Bot, and incr for each evaluation 2023-04-16 03:12:55 -04:00
tali 27e5394a8c more placement info in Node fmt::Debug 2023-04-16 03:12:55 -04:00
tali 51c8d72711 fix reexport of heuristic functions so they can be used by benches 2023-04-16 03:12:55 -04:00
tali 78f4c80e8e remove useless TODO 2023-04-16 03:01:47 -04:00
tali 3445f9e44a add Features and Weights types to fish::eval 2023-04-15 18:25:27 -04:00
tali 32f66bb423 create Evaluator type that manages ratings; compute score relative to root 2023-04-15 18:24:48 -04:00
tali df1913d8f3 impl Display for Queue, impl Debug for Node 2023-04-15 17:29:10 -04:00
tali 5e069cf3ff refactor flood fill to use a more optimal algorithm 2023-04-14 20:27:44 -04:00
tali 5f653db2c9 add criterion benchmarking support, plus some benches 2023-04-14 18:53:21 -04:00
tali 84ba4d8145 shrimplify: find_locations() is not generic 2023-04-14 18:31:30 -04:00
tali 04197d4256 fix comment in downstacking.rs that was being treated as a doctest 2023-04-13 20:27:14 -04:00
tali 66bb54a48c remove all of the old cli impl from fish/, fumen-utils/ 2023-04-13 15:30:29 -04:00
tali 6d1ced46e4 improve lifetime annotation in bot 2023-04-12 15:47:32 -04:00
tali 79695ef1d6 add remark to AStarNode about tiebreakers 2023-04-11 22:39:45 -04:00
tali 2a53e992ae implement cleaned up and well documented version of bot engine 2023-04-11 19:11:40 -04:00
tali a40d336911 ai: enable using hold if it is initially empty 2023-04-11 13:18:13 -04:00
tali 002c0ba37c shrimplify: remove "capabilities" interface
this is also going to be reassessed later
2023-04-11 12:31:35 -04:00
tali 7637f892ae shrimplify: remove FindLocationsBuffers
we will add some sort of similar functionality back later, after we have performance data
to justify it
2023-04-09 18:00:30 -04:00
tali 71efd222eb code quality: downstacking.rs 2023-04-09 14:43:06 -04:00
tali 15d69fe128 WIP: modified A* with bumpalo managed nodes 2023-03-07 19:30:31 -05:00
tali d52e4da215 Add evaluate() function that combines the eval fn's with weights 2023-03-07 19:10:26 -05:00
tali 111ca1a7bb move eval/mod.rs to eval.rs 2023-03-07 17:48:49 -05:00
tali 3e52b6fb71 Fix clippy lints
- format strings
2023-03-05 12:45:04 -05:00
tali c3d144f730 Use tracing crate for logging 2023-03-05 12:45:04 -05:00
tali 7ddc748d35 Guide AI by heuristic evaluation; "best first search" 2023-03-05 12:45:04 -05:00
tali 5313580b2e Implement some basic downstacking heuristics 2023-03-05 12:44:57 -05:00
tali e6bf7ec12b Implement a couple straightforward heuristics 2022-12-21 16:31:52 -05:00
tali f76cc06bc9 Add "best" subcommand to CLI to invoke AI core 2022-12-20 11:19:31 -05:00
tali 90dcc2555a Create initial AI engine core 2022-12-20 11:19:31 -05:00
tali 2f80606eb7 Create fish cli, "list" command 2022-12-20 11:19:31 -05:00
tali 370a0329b9 Add some types to be serialized over IO 2022-12-20 11:12:05 -05:00
tali aade234881 Create DFS find_locations algorithm 2022-12-16 10:22:27 -05:00
tali 0190bdce66 Initialize "fish" crate 2022-12-16 10:22:27 -05:00