Fixed some bugs with AI

This commit is contained in:
2022-11-26 14:31:06 -08:00
parent c1ac69a146
commit c1d6885970
25 changed files with 245 additions and 119 deletions

View File

@ -11,18 +11,16 @@
#include "visualnovel/VisualNovelManager.hpp"
#include "visualnovel/events/VisualNovelTextboxEvent.hpp"
#include "poker/PokerGame.hpp"
#include "poker/visualnovel/PokerNewGameEvent.hpp"
#include "poker/visualnovel/PokerNewRoundEvent.hpp"
#include "poker/visualnovel/PokerTakeBlindsEvent.hpp"
#include "poker/visualnovel/PokerDealEvent.hpp"
#include "poker/visualnovel/PokerTurnEvent.hpp"
#include "poker/visualnovel/PokerDetermineBetterEvent.hpp"
#include "visualnovel/events/PokerBetLoopEvent.hpp"
#include "visualnovel/events/SimpleLoopEvent.hpp"
namespace Dawn {
class TestScene {
public:
static Scene * create(DawnGame *game) {
Scene *scene = new Scene(game);
Scene *scene;
scene = new Scene(game);
// Camera
auto camera = Camera::create(scene);
@ -55,22 +53,7 @@ namespace Dawn {
->then(new VisualNovelTextboxEvent(vnManager, "Blinds Taken"))
->then(new PokerDealEvent(vnManager))
->then(new VisualNovelTextboxEvent(vnManager, "Cards Dealt"))
->then(new PokerDetermineBetterEvent(vnManager))
;
betting
->whenEveryoneFolded(new VisualNovelTextboxEvent(vnManager, "Everyone Folded"))
;
betting
->whenBettingFinished(new VisualNovelTextboxEvent(vnManager, "Betting Finished"))
;
betting
->whenTurn(new VisualNovelTextboxEvent(vnManager, "Turn Time"))
;
betting
->whenAiBet(new VisualNovelTextboxEvent(vnManager, "AI Bet"))
;
betting
->whenHumanBet(new VisualNovelTextboxEvent(vnManager, "Human Bet"))
->then(new PokerBetLoopEvent(vnManager))
;
return scene;