Pokerth to MTT Poker Simulation for Training
Posted: Fri May 12, 2023 3:12 pm
Hi ho
This is a MTT Simulation with 8 Players. And when one players lost
and stack = 0 then another Player with random stack takes this seat.
Just like in real MTTs.
But when human players stack = 0 then game is over !
Next to do is to change bots behaviour. Maybe some Types of players
I will try to implement. Aggressive, passives, fish and a shark type.
I still have to think about how to do this. Any suggestions ?
https://youtu.be/_mVm6ijkkVU
I have changed ...\PokerTH\pokerth-stable\src\engine\game.cpp
to this:

This is a MTT Simulation with 8 Players. And when one players lost
and stack = 0 then another Player with random stack takes this seat.
Just like in real MTTs.
But when human players stack = 0 then game is over !

Next to do is to change bots behaviour. Maybe some Types of players
I will try to implement. Aggressive, passives, fish and a shark type.
I still have to think about how to do this. Any suggestions ?
https://youtu.be/_mVm6ijkkVU
I have changed ...\PokerTH\pokerth-stable\src\engine\game.cpp
to this:
Code: Select all
#include "tools.h" // weiter nach oben
...
static int mttcounter = 500; // 500 mal darf ein Bot neu reinkommen
// set player with empty cash inactive
it = activePlayerList->begin();
while( it!=activePlayerList->end() )
{
if((*it)->getMyCash() == 0)
{
// nur bots duerfen wieder neu reinkommen
if ( mttcounter > 0 && (*it)->getMyType() != PLAYER_TYPE_HUMAN )
{
mttcounter--;
int rndtmp;
// Stack Zufallswert von SB*10 bis SB*200
Tools::GetRand( getCurrentSmallBlind()*10, getCurrentSmallBlind()*200, 1, &rndtmp);
(*it)->setMyCash( rndtmp );
}
else
{
(*it)->setMyActiveStatus(false);
it = activePlayerList->erase(it);
}
// todo
// logdatei und logfenster werden unerwartet gross
// koennte Problem werden ???
}
}