diff --git a/src/engine/local_engine/tools.cpp b/src/engine/local_engine/tools.cpp index b1b9da49..099e06a2 100755 --- a/src/engine/local_engine/tools.cpp +++ b/src/engine/local_engine/tools.cpp @@ -91,8 +91,40 @@ void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool } -double* Tools::calcCardsChance() +int* Tools::calcCardsChance(int* playerCards, int* boardCards, GameState beRoID) { - double array[10] = { 30.12, 11.11, 100.00, 0.00, 0.00, 99.22, 78.56, 34.22, 67.22, 21.00 }; +// int playerCards[2]; + +// playerCards[0] = 10; +// playerCards[1] = 20; + +// int boardCards[5]; +// +// boardCards[0] = 4; +// boardCards[1] = 6; +// boardCards[2] = 15; +// boardCards[3] = 30; +// boardCards[4] = 40; +// +// GameState bero = GAME_STATE_PREFLOP; + +// switch(bero) { +// case GAME_STATE_PREFLOP: { +// +// } break; +// case GAME_STATE_FLOP: { +// +// } break; +// case GAME_STATE_TURN: { +// +// } break; +// case GAME_STATE_RIVER: { +// +// } break; +// default; { +// } +// } + + int array[10] = { 30, 11, 100, 0, 0, 99, 78, 34, 67, 21 }; return array; } diff --git a/src/engine/local_engine/tools.h b/src/engine/local_engine/tools.h index 9e73ec22..90ed80b0 100755 --- a/src/engine/local_engine/tools.h +++ b/src/engine/local_engine/tools.h @@ -20,11 +20,12 @@ #ifndef TOOLS_H #define TOOLS_H +#include "game_defs.h" class Tools{ public: static void getRandNumber(int, int, int, int*, bool); - static double* calcCardsChance(); + static int* calcCardsChance(int*,int*,GameState); }; #endif