@fitz1567 I tried out the new logic for possibleteams.js but seems to be still getting that no teams available to be played is happening.
Are you getting this too?
heres the rule it failed on..
@fitz1567 I tried out the new logic for possibleteams.js but seems to be still getting that no teams available to be played is happening.
Are you getting this too?
heres the rule it failed on..
Yes it fails at all the same points its because of return fetch(
https://splinterlands-data-service.herokuapp.com/battlesruleset?ruleset=${rulesetEncoded}&mana=${mana}
). He built his table without the new rulesets and combinations. So when you get the match details it fails to fetch these details. I'm consolidating my playable hands in an excel file with the rulesets and mana costs. Then i'm going to convert it to .json and learn to add new match data to my table. Something like mana,splinter,ruleset1,ruleset2, summoner,position1,2,3,etc. and then record, win%, win vs. fire, win vs. earth, etc.. Then when i pull the game details do <= mana, contains splinter and all the other rules. When I play I update the record and when I lose to a new hand not stored add the combination to the table. I'm going to let these bots fly in bronze and when i'm done with my logic switch it over. Can always add to the else that surrenders your own play logic if you want a quick fix!Ah yeah that herokuapp seems like it needs to be updated too. Maybe if it can all be coded in the script and not need to pull data from an external place it would work better.
Okay if you get that working lemme know, happily add it to my github repo. Sounds like you have a better understanding of this than I do.
I was able to get up to Silver III with the bots so hopefully you can do the same.
"Maybe if it can all be coded in the script and not need to pull data from an external place it would work better." This is what i've been mulling over for a few days on how best to solve for this. I think the answer is either .json store the permutation or mysql (but would have to pay for this). I have an excel file with a good amount of basic account card permutations and wanted to use the exceljs package to just use excel, but getting hungup on sort and filter functions as I really only see an autofilter function. I'm now converting my excel file to .json and then i'm going to work on how to play my hands and store the record.