Home

Awesome

solitaire.hs

╭───────────── Solitaire ──────────────╮                                       
│╭──╮│╭──╮╭──╮╭──╮╭──╮╭──╮╭──╮╭──╮│╭  ╮│ Score:   0                            
││λ=││╭──╮╭──╮╭──╮╭──╮╭──╮╭──╮│7♠││    │                                       
│╰──╯│╭──╮╭──╮╭──╮╭──╮╭──╮│K♥│╰──╯│╰  ╯│ Moves:   0                            
│╭──╮│╭──╮╭──╮╭──╮╭──╮│J♣│╰──╯    │╭  ╮│                                       
││3♠││╭──╮╭──╮╭──╮│6♦│╰──╯        │    │ [New]                                 
│╭──╮│╭──╮╭──╮│9♣│╰──╯            │╰  ╯│                                       
││3♥││╭──╮│Q♠│╰──╯                │╭  ╮│ [Undo]                                
│╭──╮││4♠│╰──╯                    │    │                                       
││7♦││╰──╯                        │╰  ╯│                                       
│╰──╯│                            │╭  ╮│                                       
│    │                            │    │                                       
│    │                            │╰  ╯│                                       
│    │                            │    │                                       
╰──────────────────────────────────────╯                                       

Essay

For more background on this project, read the blog post I wrote about developing it.

Prerequisites

You'll need to install:

Playing solitaire

You can clone this repo and use stack to build and run the executable like so:

git clone https://github.com/ambuc/solitaire.git
cd solitaire
stack build
stack exec solitaire-exe

Links