balatro-seed-search/tests/reference/shop_oracle.cpp

23 lines
807 B
C++

// Compile against TheSoul 780c1c21d9c5c283f2229548ee715b5fc2578342:
// g++ -std=c++17 -O2 -ffp-contract=off -I /path/to/TheSoul/include \
// tests/reference/shop_oracle.cpp -o /tmp/shop-oracle
// Run: /tmp/shop-oracle ALEEB
// Output: ante, one-based draw, kind, canonical upstream item name (TSV).
#include <cmath>
using std::isnan;
#include "util.hpp"
#include "items.hpp"
#include "functions.hpp"
int main(int argc, char** argv) {
if (argc != 2) return 1;
for (int ante = 1; ante <= 8; ++ante) {
Instance instance(argv[1]);
instance.params.version = 10106;
for (int draw = 1; draw <= 16; ++draw) {
auto card = instance.nextShopItem(ante);
std::cout << ante << '\t' << draw << '\t' << card.type << '\t' << card.item << '\n';
}
}
}