Skip to content

Commit

Permalink
update Readme(CN).md
Browse files Browse the repository at this point in the history
  • Loading branch information
Agony5757 committed Mar 17, 2022
1 parent cc45e72 commit 4fb21cb
Showing 1 changed file with 32 additions and 25 deletions.
57 changes: 32 additions & 25 deletions 读我.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,35 +63,42 @@ python setup.py install
int main()
{
Table t;
t.set_write_log(true);
t.game_init();
while (t.get_phase() != Table::GAME_OVER)
{
print("{}\n", t.to_string());
print("{} is making selection.\n", t.who_make_selection());
if (t.get_phase() <= 4)
{
print("SelfAction phase.\n");

auto& actions = t.get_self_actions();
/* inspect all available actions here */

int selection;
/* replace this with your selection method */
t.make_selection(selection);
}
else
try {
while (t.get_phase() != Table::GAME_OVER)
{
print("Response Action phase.\n");

auto& actions = t.get_response_actions();
/* inspect all available (response) actions here */

int selection;
/* replace this with your selection method */
t.make_selection(selection);
fmt::print("{}\n", t.to_string());
fmt::print("{} is making selection.\n", t.who_make_selection());
if (t.get_phase() < 4)
{
fmt::print("SelfAction phase.\n");

auto& actions = t.get_self_actions();
/* inspect all available actions here */

int selection;
/* replace this with your selection method */
t.make_selection(selection);
}
else
{
fmt::print("Response Action phase.\n");

auto& actions = t.get_response_actions();
/* inspect all available (response) actions here */

int selection;
/* replace this with your selection method */
t.make_selection(selection);
}
}
fmt::print("Result: \n{}", t.get_result().to_string());
}
catch (std::exception& e) {
// output replay & debug codes
t.print_debug_replay();
}
print("Result: \n{}", t.get_result().to_string());
return 0;
}

Expand Down

0 comments on commit 4fb21cb

Please sign in to comment.