aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 01:50:44 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 01:50:44 +0100
commit1bf2a3ead39fd7adedf7c367bf8650b908416fa5 (patch)
tree9f7ef64a8636082ab004feb8f55b30a643eff1d0
parent7b21c44c67b1b61d4606205219264f084fab07ea (diff)
Removed randomize command.
-rw-r--r--include/evolver.h1
-rw-r--r--src/evolver.c11
-rw-r--r--tsalis/README.md1
-rw-r--r--tsalis/src/handler.c10
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;
}
}