mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 15:36:59 +00:00
rulegen:: new test value
This commit is contained in:
parent
3616221118
commit
489c930ced
@ -447,6 +447,12 @@ int total_analyzers() {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int shape_edges() {
|
||||||
|
int res = 0;
|
||||||
|
for(auto& sh: arb::current.shapes) res += sh.size();
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
void test_current(string tesname) {
|
void test_current(string tesname) {
|
||||||
stop_game();
|
stop_game();
|
||||||
pointer_indices.clear();
|
pointer_indices.clear();
|
||||||
@ -564,6 +570,7 @@ void test_current(string tesname) {
|
|||||||
case 'y': Out("tree", isize(treestates));
|
case 'y': Out("tree", isize(treestates));
|
||||||
case 'a': Out("amin;amax", lalign(0, areas[0], ";", areas.back()));
|
case 'a': Out("amin;amax", lalign(0, areas[0], ";", areas.back()));
|
||||||
case 'h': Out("shapes", isize(arb::current.shapes));
|
case 'h': Out("shapes", isize(arb::current.shapes));
|
||||||
|
case 'e': Out("edges", shape_edges());
|
||||||
case 'f': Out("file", tesname);
|
case 'f': Out("file", tesname);
|
||||||
case 'l': Out("shortcut", longest_shortcut());
|
case 'l': Out("shortcut", longest_shortcut());
|
||||||
case '3': Out("shqty", longest_shortcut().first);
|
case '3': Out("shqty", longest_shortcut().first);
|
||||||
|
Loading…
Reference in New Issue
Block a user