Function: 5x5-make-xor-with-mutation
5x5-make-xor-with-mutation is a byte-compiled function defined in
5x5.el.gz.
Signature
(5x5-make-xor-with-mutation CURRENT BEST)
Documentation
Xor current and best solution then mutate the result.
Source Code
;; Defined in /usr/src/emacs/lisp/play/5x5.el.gz
(defun 5x5-make-xor-with-mutation (current best)
"Xor current and best solution then mutate the result."
(let ((xored (5x5-make-new-grid)))
(dotimes (y 5x5-grid-size)
(dotimes (x 5x5-grid-size)
(5x5-set-cell xored y x
(xor (5x5-cell current y x)
(5x5-cell best y x)))))
(5x5-mutate-solution xored)))