diff --git a/cpp/include/phevaluator/card_sampler.h b/cpp/include/phevaluator/card_sampler.h index 26d9447..bfe2bd5 100644 --- a/cpp/include/phevaluator/card_sampler.h +++ b/cpp/include/phevaluator/card_sampler.h @@ -10,12 +10,12 @@ namespace card_sampler { class CardSampler { std::array deck; -public: + public: CardSampler(void); std::vector sample(int size); }; -} // namespace card_sampler +} // namespace card_sampler #ifdef __cplusplus -} // closing brace for extern "C" +} // closing brace for extern "C" #endif diff --git a/cpp/src/card_sampler.cc b/cpp/src/card_sampler.cc index a700f01..6b35487 100644 --- a/cpp/src/card_sampler.cc +++ b/cpp/src/card_sampler.cc @@ -1,7 +1,7 @@ +#include #include #include #include -#include #include #include #include @@ -11,7 +11,9 @@ static unsigned seed = std::chrono::system_clock::now().time_since_epoch().count(); static std::default_random_engine generator(seed); -CardSampler::CardSampler(void) { std::iota(deck.begin(), deck.end(), 0); } +CardSampler::CardSampler(void) { + std::iota(deck.begin(), deck.end(), 0); +} std::vector CardSampler::sample(int size) { std::vector ret; @@ -25,4 +27,4 @@ std::vector CardSampler::sample(int size) { } return ret; } -} // namespace card_sampler +} // namespace card_sampler diff --git a/cpp/test/evaluation_plo4.cc b/cpp/test/evaluation_plo4.cc index 5828712..0a7e712 100644 --- a/cpp/test/evaluation_plo4.cc +++ b/cpp/test/evaluation_plo4.cc @@ -1,13 +1,13 @@ -#include -#include #include #include #include +#include +#include #include #include -#include "kev/kev_eval.h" #include "gtest/gtest.h" +#include "kev/kev_eval.h" using namespace phevaluator; @@ -17,8 +17,8 @@ static int percentage(long long numerator, long long denominator) { static card_sampler::CardSampler cs{}; -static short IterateKevEval(int a, int b, int c, int d, int e, int f, int g, - int h, int i) { +static short +IterateKevEval(int a, int b, int c, int d, int e, int f, int g, int h, int i) { short best = 20000; int board[10][3] = { diff --git a/cpp/test/evaluation_plo5.cc b/cpp/test/evaluation_plo5.cc index d2eb87c..5dbf913 100644 --- a/cpp/test/evaluation_plo5.cc +++ b/cpp/test/evaluation_plo5.cc @@ -1,13 +1,13 @@ -#include -#include #include #include #include +#include +#include #include #include -#include "kev/kev_eval.h" #include "gtest/gtest.h" +#include "kev/kev_eval.h" using namespace phevaluator; @@ -17,8 +17,16 @@ static int percentage(long long numerator, long long denominator) { static card_sampler::CardSampler cs{}; -static short IterateKevEval(int a, int b, int c, int d, int e, int f, int g, - int h, int i, int j) { +static short IterateKevEval(int a, + int b, + int c, + int d, + int e, + int f, + int g, + int h, + int i, + int j) { short best = 20000; int board[10][3] = { diff --git a/cpp/test/evaluation_plo6.cc b/cpp/test/evaluation_plo6.cc index 65ca621..46c5a48 100644 --- a/cpp/test/evaluation_plo6.cc +++ b/cpp/test/evaluation_plo6.cc @@ -1,13 +1,13 @@ -#include -#include #include #include #include +#include +#include #include #include -#include "kev/kev_eval.h" #include "gtest/gtest.h" +#include "kev/kev_eval.h" using namespace phevaluator; @@ -17,8 +17,17 @@ static int percentage(long long numerator, long long denominator) { static card_sampler::CardSampler cs{}; -static short IterateKevEval(int a, int b, int c, int d, int e, int f, int g, - int h, int i, int j, int k) { +static short IterateKevEval(int a, + int b, + int c, + int d, + int e, + int f, + int g, + int h, + int i, + int j, + int k) { short best = 20000; int board[10][3] = {