probing the ground
This commit is contained in:
parent
21a61717b0
commit
22638ba98a
2 changed files with 8 additions and 8 deletions
|
@ -5,9 +5,9 @@ const { QWERTY } = require("./presets");
|
|||
const QWERTY_SEQUENCE = QWERTY.toSequence();
|
||||
const LOCK_POSITIONS = {}; `
|
||||
\`:\` 1:1 2:2 3:3 4:4 5:5 6:6 7:7 8:8 9:9 0:0 -:- =:=
|
||||
l:w r:e ;:y u:i d:o [:[ ]:] \\:\\
|
||||
s:a h:s n:d t:f ,:g .:h a:j e:k o:l i:; ':' \\n:\\n
|
||||
c:v /:b y:/
|
||||
\\:\\
|
||||
/:g \\n:\\n
|
||||
|
||||
|
||||
`.trim().split(/\s+/).map(i => {
|
||||
const [key, value] = i.split(":");
|
||||
|
@ -18,7 +18,7 @@ const LOCK_POSITIONS = {}; `
|
|||
|
||||
// symbols that must be under the same hand
|
||||
const SAME_HANDS = [
|
||||
["t", "h"]
|
||||
// ["t", "h"]
|
||||
];
|
||||
|
||||
const GENOFOND = [];
|
||||
|
@ -103,7 +103,7 @@ class Genome {
|
|||
mutate(times) {
|
||||
const placeholder1 = "НИКОЛАЙ";
|
||||
const placeholder2 = "НЕБАЛУЙ";
|
||||
const max_tries = 200;
|
||||
const max_tries = 500;
|
||||
let tries_so_far = 0;
|
||||
let new_sequence = this.sequence;
|
||||
|
||||
|
|
|
@ -9,9 +9,9 @@ const { QWERTY, Workman } = require("./presets");
|
|||
const data = text;
|
||||
const cluster = new Cluster(data);
|
||||
const use_elites = true;
|
||||
const mutate_level = 2;
|
||||
const mutate_level = 3;
|
||||
const seed_layouts = [QWERTY, Workman];
|
||||
const max_no_chage = 80;
|
||||
const max_no_chage = 300;
|
||||
|
||||
co(boot).catch(e => console.log(e.stack));
|
||||
|
||||
|
@ -21,7 +21,7 @@ function *boot() {
|
|||
ui.addResult(layout, new Stats(result));
|
||||
}
|
||||
|
||||
yield start(Population.random(), 1000);
|
||||
yield start(Population.random(), 1000000);
|
||||
}
|
||||
|
||||
function *start(population, count) {
|
||||
|
|
Loading…
Reference in a new issue