Skip to content

The repository for our Functional Programming and Software Engineering course

Notifications You must be signed in to change notification settings

sallocc/ocaml-final

Repository files navigation

Connect 4 N-gram AI

The repository for our Functional Programming and Software Engineering course

Opam dependencies

  • Need to download dream. This can be done through an opam command "opam install dream.1.0.0~alpha2"

Build and Test

  • Standard "dune build" to build the files
  • To execute the dream website run the command "dune exec --root . ./src/main.exe" in the top-level directory
  • If a dune-project file appears in the src folder, please delete before running tests as that will mess up the project dependencies
  • For testing, "dune test" runs the test suites (not including I/O functions)
  • For test coverage, first run "dune test" then "bisect-ppx-report html". To view the coverage report "open _coverage/index.html".

Tranning AI

  • training.ml file contains the functions needed to train N-gram AI
  • After setting the parameters instructed in training.ml file, "dune exec ./src/training.exe" generates the AI and stored in the file given

About

The repository for our Functional Programming and Software Engineering course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages