2023-08-12 12:16:23 +02:00
|
|
|
#include "download.h"
|
|
|
|
#include "game_state.h"
|
|
|
|
|
2023-11-16 16:20:04 +01:00
|
|
|
void test()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
auto game = Download::get_game("in/1005195", 43);
|
|
|
|
auto res = game->evaluate_state();
|
|
|
|
if (!(res == Hanabi::probability_t(7, 8)))
|
2023-08-12 12:16:23 +02:00
|
|
|
{
|
2023-11-16 16:20:04 +01:00
|
|
|
std::cerr << "Test " << ("1005195") << " failed." << std::endl;
|
2023-08-12 12:16:23 +02:00
|
|
|
}
|
2023-11-16 16:20:04 +01:00
|
|
|
else
|
|
|
|
{
|
|
|
|
std::cout << "Test " << ("1005195") << " succeeded." << std::endl;
|
|
|
|
};
|
|
|
|
}
|
2023-08-12 12:16:23 +02:00
|
|
|
}
|