diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..15910ce --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +billion: + g++ *.cpp + a 1000000000 + +million: + g++ *.cpp + a 1000000 + +thousand: + g++ *.cpp + a 1000 + +hundred: + g++ *.cpp + a 100 \ No newline at end of file diff --git a/README.md b/README.md index b8baab6..3b22173 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,17 @@ # Bayesian Thompson Sampling MAB RPS - README ### Compiling -To compile, please use the following command: - > ``g++ *.cpp`` +To compile, please use the following commands: + +> `make hundred` > `make thousand` > `make million` > `make billion` ### Running -Example: run > ``./a.out 1000`` +You may change the number of trials to suit your needs. +Example: + +> 'g++ \*.cpp' +> `./a.out 1000` -The above will run 1000 trials. You may change the number of trials to suit your needs. This program has been tested to up to 1 billion trials successfully. diff --git a/README.txt b/README.txt deleted file mode 100644 index 5b32012..0000000 --- a/README.txt +++ /dev/null @@ -1,13 +0,0 @@ -# Bayesian Thompson Sampling MAB RPS - README - -### Compiling -To compile, please use the following command: - - >``g++ *.cpp`` - -### Running - -Example: run >``./a.out 1000`` - -The above will run 1000 trials. You may change the number of trials to suit your needs. -This program has been tested to up to 1 billion trials successfully. diff --git a/strategies.cpp b/strategies.cpp index b3f7ac5..b9b4251 100644 --- a/strategies.cpp +++ b/strategies.cpp @@ -271,4 +271,5 @@ std::string RPS_to_s(RPS rps) break; } + return 0; }