Skip to content

MiniFrame is a C library providing a framework to implement the MiniMax algorithm.

License

Notifications You must be signed in to change notification settings

BayashiPascal/MiniFrame

Repository files navigation

MiniFrame

MiniFrame is a C library providing a framework to implement the MiniMax algorithm.

It has been tested on CodinGame programming tournaments:

  • Ultimate Tic-Tac-Toe (2 players, turn base): 182nd/1843 (as of 2018-12-30)

How to install this repository

  1. Create a directory which will contains this repository and all the repositories it is depending on. Lets call it "Repos"
  2. Download the master branch of this repository into "Repos". Unzip it if necessary.
  3. The folder's name for the repository should be followed by "-master", rename the folder by removing "-master".
  4. cd to the repository's folder
  5. If wget is not installed: sudo apt-get update && sudo apt-get install wget on Ubuntu 16.04, or brew install wget on Mac OSx
  6. If gawk is not installed: sudo apt-get update && sudo apt-get install gawk on Ubuntu 16.04, brew install gawk on Mac OSx
  7. If this repository is the first one you are installing in "Repos", run the command make -k pbmake_wget
  8. Run the command make to compile the repository.
  9. Eventually, run the command main to run the unit tests and check everything is ok.
  10. Refer to the documentation to learn how to use this repository.

The dependancies to other repositories should be resolved automatically and needed repositories should be installed in the "Repos" folder. However this process is not completely functional and some repositories may need to be installed manually. In this case, you will see a message from the compiler saying it cannot find some headers. Then install the missing repository with the following command, e.g. if "pbmath.h" is missing: make pbmath_wget. The repositories should compile fine on Ubuntu 16.04. On Mac OSx, there is currently a problem with the linker. If you need assistance feel free to contact me with my gmail address: at bayashipascal.

About

MiniFrame is a C library providing a framework to implement the MiniMax algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published