I thought this was going to be a link to [1], from a talk given at Swift Summit a couple days ago. I haven't really looked at the code for either one to compare them, but for people who are interested, here's a second simple genetic algorithm in Swift (found in RubikSwift/GeneticsSolver.swift)<p><a href="https://github.com/JaviSoto/RubikSwift" rel="nofollow">https://github.com/JaviSoto/RubikSwift</a>