From 1bf2a3ead39fd7adedf7c367bf8650b908416fa5 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 01:50:44 +0100 Subject: Removed randomize command. --- include/evolver.h | 1 - src/evolver.c | 11 ----------- tsalis/README.md | 1 - tsalis/src/handler.c | 10 ---------- 4 files changed, 23 deletions(-) diff --git a/include/evolver.h b/include/evolver.h index b8955f1..15a4f64 100644 --- a/include/evolver.h +++ b/include/evolver.h @@ -12,7 +12,6 @@ sbyte se_getLastInst (void); sword se_getState (sword eidx); void se_setState (sword eidx, sword state); -void se_randomize (void); void se_cycle (void); #endif diff --git a/src/evolver.c b/src/evolver.c index d72f38b..ba043a3 100644 --- a/src/evolver.c +++ b/src/evolver.c @@ -112,17 +112,6 @@ generateRandomNumber(void) return t; } -void -se_randomize(void) -{ - sword addr; - assert(g_isInit); - - for (addr = 0; addr < sm_getSize(); addr++) { - sm_setInstAt(addr, (sbyte)(generateRandomNumber() % SINST_COUNT)); - } -} - void se_cycle(void) { diff --git a/tsalis/README.md b/tsalis/README.md index abfe188..214e3b9 100644 --- a/tsalis/README.md +++ b/tsalis/README.md @@ -60,7 +60,6 @@ control some aspects of the simulation. Parameters here are represented by |s |--- |--- |Save simulation. | |r*XX* |name |--- |Rename simulation (will be automatically saved to this name on exit). | |a*XX* |interval |--- |Set simulation's auto-save interval. | -|? |--- |--- |Fill memory with random data. | ### Legend In WORLD view, as well as in PROCESS view (when gene mode is selected), each diff --git a/tsalis/src/handler.c b/tsalis/src/handler.c index a0730ad..21aa706 100644 --- a/tsalis/src/handler.c +++ b/tsalis/src/handler.c @@ -140,12 +140,6 @@ setAutoSave(const char *command) g_autoSaveInterval = atoi(command); } -static void -randomize(void) -{ - se_randomize(); -} - static void clearConsoleLine(void) { @@ -206,10 +200,6 @@ runConsole(void) case 'a': setAutoSave(&command[1]); break; - - case '?': - randomize(); - break; } } -- cgit v1.2.1