Now have a cycle and repeated action mitigation technique in the AI algorithm called 'delete shit you've seen'.

This commit is contained in:
Zed A. Shaw 2025-03-31 11:27:48 -04:00
parent 6fa7b0a418
commit 862d8b4d81
3 changed files with 44 additions and 21 deletions

View file

@ -25,13 +25,12 @@ TEST_CASE("RitualEngine basic tests", "[rituals]") {
re.set_state(ritual, "has_spikes", true);
re.plan(ritual);
/*
fmt::println("\n\n------------ TEST WILL DO MAGICK TOO");
ritual.dump();
REQUIRE(ritual.will_do("magick_type"));
REQUIRE(ritual.will_do("pierce_type"));
ritual.pop();
REQUIRE(ritual.will_do("pierce_type"));
REQUIRE(ritual.will_do("magick_type"));
re.reset(ritual);
re.set_state(ritual, "has_magick", true);
@ -48,7 +47,6 @@ TEST_CASE("RitualEngine basic tests", "[rituals]") {
re.plan(ritual);
fmt::println("\n\n------------ TEST WILL DO LARGE DAMAGE BOOST");
ritual.dump();
*/
}
TEST_CASE("confirm that cycles are avoided/detected", "[rituals]") {
@ -58,6 +56,7 @@ TEST_CASE("confirm that cycles are avoided/detected", "[rituals]") {
re.set_state(ritual, "has_magick", true);
re.set_state(ritual, "cursed_item", true);
re.set_state(ritual, "shiny_bauble", true);
re.plan(ritual);
fmt::println("\n\n------------ CYCLES AVOIDED");
ritual.dump();