Do not consider adding at a :gap

This commit is contained in:
Lee Spector 2023-12-07 16:47:50 -05:00
parent f6a9426751
commit 82657abf32

View File

@ -111,7 +111,8 @@ The function `new-individual` returns a new individual produced by selection and
existing instruction."
[plushy instructions umad-rate]
(apply concat
(map #(if (< (rand) umad-rate)
(map #(if (and (not= % :gap)
(< (rand) umad-rate))
(shuffle [% (utils/random-instruction instructions)])
[%])
plushy)))