#include <iostream>
#include "../game.hpp"
#include "../gui.hpp"
#include "../player.hpp"
void cls() {
for(int i = 0; i < 100; i++){
std::cout << std::endl;
}
}
int main() {
int playerCount = 3;
Game game(playerCount);
CardGui gui;
while(true){
cls();
game.playTheFlop();
int blind = 20;
Player player = game.players[playerCount-1];
std::cout << game.players[playerCount-1].name;
std::cout << " Chips: " << player.chips;
std::cout << " Wins: " << player.wins;
std::cout << gui.renderCards(player.cards) << std::endl;
int raiseAmount = 0.05 * player.chips;
std::cout << "Raise amount: ";
std::cin >> raiseAmount;
if(raiseAmount == 0)
raiseAmount = 20;
if(game.bestPlayer.name == player.name){
game.players[playerCount-1].chips += raiseAmount;
}else{
game.players[playerCount-1].chips -= raiseAmount;
}
cls();
std::cout << game.players[playerCount-1].name;
std::cout << " Chips: " << game.players[playerCount-1].chips;
std::cout << " Wins: " << game.players[playerCount-1].wins;
std::cout << gui.renderCards(game.communityCards);
std::cout << gui.renderCards(game.bestPlayer.cards) << std::endl;
std::cout << game.bestPlayer.name << ": " << game.bestPlayer.score.name << std::endl << std::endl;
std::string buff;
std::getline(std::cin, buff, '\n');
std::getline(std::cin, buff, '\n');
}
return 0;
}