chess960 in OCaml — Running the Program

$ make clean        
rm -f chess960a chess960b chess960e chess960-demo *.cmi *.cmo *.cmx *.o
$ make chess960-demo
ocamlfind ocamlopt -o chess960-demo -package kw chess960-demo.ml -linkpkg
$ ./chess960-demo 1 
BRNNQKRB
$ ./chess960-demo 1
QRKRBNNB
$ ./chess960-demo 4
RBKNBQRN
RQNNBKRB
NRKQBNRB
BRKQNRNB
$ ./chess960-demo | wc -l
     960
$ ./chess960-demo | sort | uniq | wc -l
     960
$ make timings
chess960-demo: 0.123 = 0.110u + 0.013s
$