1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-15 13:17:13 +00:00
This commit is contained in:
Zeno Rogue
2025-10-19 15:52:22 +02:00
parent 113e75d5e1
commit b7fb3adc41
4 changed files with 8 additions and 6 deletions

View File

@@ -204,7 +204,7 @@ tuple<ld,bool,ld> quality(bantar_config cp) {
int notry = 0;
debugflags debug_bantar = {"demo_bantar"};
debugflag debug_bantar = {"demo_bantar"};
void bantar() {
if(!on) return;

View File

@@ -917,7 +917,7 @@ void initialize_dispersion() {
cell *c = net[i].where;
auto cid = get_cellcrawler_id(c);
if(!scc.count(cid.first)) {
DEBB(debug_kohonen_dispoersion, ("Building cellcrawler id = ", itsh(cid.first)));
DEBB(debug_kohonen_dispersion, ("Building cellcrawler id = ", itsh(cid.first)));
buildcellcrawler(c, scc[cid.first], cid.second);
}
}

View File

@@ -8,6 +8,8 @@ namespace rogueviz {
transmatrix& memo_relative_matrix(cell *c1, cell *c2);
namespace kohonen { extern debugflag debug_kohonen; }
namespace kohonen_test {
using namespace kohonen;
@@ -321,7 +323,7 @@ int qenergy = 0;
double tot_energy = 0;
bool check(bool deb) {
dynamicval dd(debugflags, 0);
dynamicval<bool> dd(debug_kohonen.enabled, false);
set_neuron_initial();
t = tmax;
dynamicval dp(qpct, 0);
@@ -414,7 +416,7 @@ void som_table() {
set_parameters(cnt);
do {
tries[cnt].second++;
dynamicval dd(debugflags, 0);
dynamicval<bool> dd(debug_kohonen.enabled, false);
bool chk = check(false);
if(chk)
tries[cnt].first++;

View File

@@ -1031,11 +1031,11 @@ EX string find_file(string s) {
return s;
}
EX void file_error(const char* fname) {
EX void file_error(const string& fname) {
throw hr_exception("missing file error");
}
EX void file_format_error(const char* fname) {
EX void file_format_error(const string& fname) {
throw hr_exception("file format error");
}