Skip to content

Commit

Permalink
Merge pull request #47 from bupticybee/iso
Browse files Browse the repository at this point in the history
🐛 fix bug causing incorrect calculation in turn and river
  • Loading branch information
bupticybee authored Sep 6, 2021
2 parents 08008af + af31bba commit 69d7fb8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tools/CommandLineTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ void CommandLineTool::processCommand(string input) {
this->stack = stof(paramstr) + this->ip_commit;
}else if(command == "set_board"){
this->board = paramstr;
vector<string> board_str_arr = string_split(board,',');
if(board_str_arr.size() == 3){
this->current_round = 1;
}else if(board_str_arr.size() == 4){
this->current_round = 2;
}else if(board_str_arr.size() == 5){
this->current_round = 3;
}else{
throw runtime_error(fmt::format("board {} not recognized",this->board));
}
}else if(command == "set_range_ip"){
this->range_ip = paramstr;
}else if(command == "set_range_oop"){
Expand Down

0 comments on commit 69d7fb8

Please sign in to comment.