Browse Source

update engine

master
Dnomd343 4 years ago
parent
commit
271a6355e9
  1. 5
      src/engine/HRD_analy.cpp
  2. 2
      src/engine/main.cpp

5
src/engine/HRD_analy.cpp

@ -530,7 +530,8 @@ void HRD_analy::Build_Case(Case_cal &dat, int &num, int x, int y, bool addr[4][5
Add_Case(dat_mod); // 发送给Add_Case
Find_Sub_Case(dat, num, x, y, addr); // 递归搜索
}
bool HRD_analy::Is_Mirror(unsigned long long code) {
bool HRD_analy::Is_Mirror(unsigned long long code) { // 判断布局是否左右对称
Case_cal dat;
Parse_Code(dat, code);
for (int j = 0; j < 5; j++) {
@ -547,7 +548,7 @@ bool HRD_analy::Is_Mirror(unsigned long long code) {
return true;
}
bool HRD_analy::Check_Code(unsigned long long code) { // 判断布局是否左右对称
bool HRD_analy::Check_Code(unsigned long long code) {
Case_cal dat;
return Parse_Code(dat, code);
}

2
src/engine/main.cpp

@ -321,7 +321,7 @@ void find_all_code(string File_name) {
}
void show_help() {
cout << "(version: v1.0)" << endl;
cout << "(version: v1.1)" << endl;
cout << "Usage of HRD_engine:" << endl;
cout << endl;
cout << " --show <code> [square_width]" << endl;

Loading…
Cancel
Save