CodingTrain / Suggestion-Box

A repo to track ideas for topics
570 stars 86 forks source link

Coding Challenge: Solitaire/Klondike #900

Open kleinesfilmroellchen opened 6 years ago

kleinesfilmroellchen commented 6 years ago

Page: https://rawgit.com/kleinesfilmroellchen/Solitaire/master/index.html

Source: https://github.com/kleinesfilmroellchen/Solitaire/tree/master

This would be an interesting challenge because it is pretty complicated managing all the cards and stacks (so 5+ parts :-)). On the other hand, it teaches a lot about modern OOP in JavaScript, collision detection, and array manipulation/higher-order functions.

I have implemented this in p5 using some HTML/CSS and ES6 syntax. Just a short note: my code includes a lot of stuff not necessary to core gameplay (automatic language apply, guide, cross-platform input etc.), so you might want to ignore that.

AtomicAstronaut commented 6 years ago

An awesome idea, @kleinesfilmroellchen!

Hope it gets implemented.