As requested over there, here's a commented cap of "first steps with the CardGame object". (Actually the request was for a tutorial involving a simple game, but hey, we're all literate here, rgith?)
Develop games in your browser. Powerful, performant & highly capable.
Good Job xD
well done