// SPDX-License-Identifier: GPL-3.0-only #include #include #include "game/club_info.hpp" #include "game/random.hpp" using namespace bmh; static void check(bool ok,const char* m){if(!ok)throw std::runtime_error(m);} static GameState fixture(int team,int count=20){GameState g;auto r=squad_range(team);g.squad_slots.assign(r.first+r.count,0x0fff);g.players.resize(64);for(int i=0;i