Skip to content

reverendpaco/Haskell-Dictionary-Trie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

A Simple Boggle Solver

  • cabal install binary
  • git clone git@github.com:reverendpaco/Haskell-Dictionary-Trie.git
  • cd ./Haskell-Dictionary-Trie/src

Either (Server Mode)

  • ghc --make WordServer.hs
  • ./WordServer (listens on 9900)
  • (on another terminal) telnet localhost 9900
  • type in letters "SERSPATGLINESERSOO" which will be wrapped into the closest approximate square, for example

SERSPATGLINESERSOO ->

                S E R S
                P A T G
                L I N E
                S E R S
                O O
  • hit return
  • watch as the words in this board are returned to you

Or (Command Line)

  • ghc --make WordSolver.hs
  • ./WorldSolver SERSPATGLINESERSOO
  • watch as the words in this board are printed out

Ahh, more recent versions of the haskell platform hide the use of Data.Binary (which I use)

  • ghc Board.hs -package ghc-binary-0.5.0.2 The above shows how you can specifically add the ghc package that containts Data.Binary

I guess I must refactor this to use a non-internal module set. So much to do.

About

experimental code with learning haskell by implementing a dictionary trie

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published