MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / state_info

Method state_info

AgentBench.old/src/tasks/card_game/logic/src/game.cpp:4–13  ·  view source on GitHub ↗

将 Game::State 转为对应阶段名称

Source from the content-addressed store, hash-verified

2
3// 将 Game::State 转为对应阶段名称
4std::string Game::state_info(Game::State state){
5 switch(state){
6 case READY: return "准备阶段";
7 case PICK: return "选择阶段";
8 case ASSERT: return "断言阶段";
9 case ACTION: return "行动阶段";
10 case END: return "游戏结束";
11 }
12 return "";
13}
14
15Game::Game(){
16 players.clear();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected