Skip to content

jakesco/wordle-hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordle.hs

Play Wordle on the command line.

Thanks to Josh Wardle for creating the original game: https://www.powerlanguage.co.uk/wordle/

wordls-hs-demo

Docker Image

A docker image is available on Docker Hub. If you have Docker installed run:

$ docker run -it jakesco/wordle-hs

Pre-compiled Binaries

The Releases page provides pre-compiled binaries for Windows 64-bit systems. Simply copy the desired binary into your path and run it (after verifying the checksum).

Windows command prompt doesn't support ANSI escape sequences used to color the Wordle.hs output. Use Windows Terminal for the best expierience.

Manual Install

The recommend installation method is using cabal-install. Most linux distribuitons have cabal and ghc available in the official repositories. Alternatively you can install them on any platform using ghcup.

This project requires GHC 8.10.

Build with cabal-install:

$ cabal update
$ cabal build

Then you can run from the project directory with:

$ cabal run

or install the executable.

$ cabal install
$ wordlehs

The default install target for cabal install is ~/.cabal/bin. Make sure the wordlehs executable is on your path.