diff options
-rw-r--r-- | include/evolver.h | 1 | ||||
-rw-r--r-- | src/evolver.c | 11 | ||||
-rw-r--r-- | tsalis/README.md | 1 | ||||
-rw-r--r-- | tsalis/src/handler.c | 10 |
4 files changed, 0 insertions, 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 @@ -113,17 +113,6 @@ generateRandomNumber(void) }
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)
{
assert(g_isInit);
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 @@ -141,12 +141,6 @@ setAutoSave(const char *command) } static void -randomize(void) -{ - se_randomize(); -} - -static void clearConsoleLine(void) { move(LINES - 1, 0); @@ -206,10 +200,6 @@ runConsole(void) case 'a': setAutoSave(&command[1]); break; - - case '?': - randomize(); - break; } } |