"src/com/poker/test/buffer.r";
public static void main(String[] args) throws Exception {
PokerControl pControl = new PokerControl();
Strategy strategy = new SSSStrategy1("");
DataForStrategy dfs = new DataForStrategy();
PlayWindow playWnd = PlayWindowFactory.getPlayWindow();
playWnd = FillPlayWindow.fillPlayWindow(playWnd, bPathPF);
// ViewBoard.viewBoard(playWnd, playWnd.getCurrentRound(), null);
dfs.setCurrentBoard(playWnd.getCurrentBoard());
dfs.setCurrentRound(playWnd.getCurrentRound());
/* not realized yet
dfs.setPlayerMoney(playWnd.getPlayerMoney());
*/
// 0 - hero place
dfs.setPlayerMoney(dfs.getCurrentBoard().getPlayers().get(0).getStack());
dfs.setTotalBank(pControl.getAllRoundTotal(playWnd));
// System.out.println("Preflop board: "+ playWnd.getPreflopBoard());
ViewBoard.viewBoard(playWnd, Rounds.PREFLOP, pControl);
AnalystResult aResult = strategy.getReaction(dfs);
System.out.println(aResult);
System.out.println("//////////////////==========================================");
playWnd = FillPlayWindow.fillPlayWindow(playWnd, bPathF);
System.out.println("Preflop board2: " + playWnd.getPreflopBoard());
System.out.println("flop board : " + playWnd.getFlopBoard());
List<Player> player = playWnd.getFlopBoard().getPlayers();
for(int i = 0; i<10;i++)
if (i != 0 && i!= 8){
player.get(i).setPlayerState(PlayerState.PRS_FOLD);
player.get(i).setReaction(UIReaction.UIR_ACTION_FOLD);
}
// ViewBoard.viewBoard(playWnd, Rounds.PREFLOP, null);
ViewBoard.viewBoard(playWnd, playWnd.getCurrentRound(), null);
dfs.setCurrentBoard(playWnd.getCurrentBoard());
dfs.setCurrentRound(playWnd.getCurrentRound());
dfs.setPlayerMoney(dfs.getCurrentBoard().getPlayers().get(0).getStack());
dfs.setTotalBank(pControl.getAllRoundTotal(playWnd));
dfs.setPrevBoard(playWnd.getPreflopBoard());
aResult = strategy.getReaction(dfs);
System.out.println(aResult);
}