# RUN PROGRAM

The executable file has already been in file just run 8queen

```bash
./8queen
time ./8queen
time ./8queen +RTS -N4
```



# COMPILE

To solve other number of nqueens puzzle, please modify the queensNum variable in 8queen.hs on line 12

```haskell
queesNum = 8 --the number you want
```



Compile the program by using

```bash
stack ghc -- -threaded -rtsopts -eventlog 8queen.hs 
```

Please make sure you have install System.Random package

