Scoundrel Solitaire port from iOS

Did you have to rewrite the code completely, or did you use something else than Swift?