I am looking forward to write a card solitaire game, including AI (if this simple can be called so) playing algorithm. No multiplayer facilities needed. I suppose there are some wheels I need not to invent myself in this project (as deck/cards/table object model, deck shuffling algorithms, etc, and, especially, cards visualisation stuff). Can you recommend a piece of code to look at? The simpler-the better.
I am using Linux. I code Scala, Java, JavaFX, JavaScript, PHP, C#, I also wouldn't mind using Erlang, Haskell, Prolog, Python, or Ruby.