image thumbnail
from POKER PREDICTOR by Luigi Giaccari
A Texas Hold'em Poker Probability and Odds calculator. Fast, accurate and free.

TestMexFiles.m



try

mex BuildTable.cpp

TablePtr=BuildTable()

catch
    disp('Before Compiling Files you need to download the HandRanks table,')
    disp('Follow the Installation instructions on:')
    disp('<a href="http://www.advancedmcode.org/poker-predictor.html">http://www.advancedmcode.org/poker-predictor.html</a>')
    return
end    
    
mex GameSimulation.cpp

KnownCards=[1 5 -1 -1 -1 -1 -1 -1 -1];
NumPlayers=2;
NumFolds=0;
NumSimulations=100000;

tic
[PlayerStat,OpponenentStat,WinTieOdd]=GameSimulation(KnownCards,NumPlayers,NumSimulations,TablePtr)
toc



mex DeleteTable.cpp

DeleteTable(TablePtr);


fprintf('Mex succesfully completed !\n')

fprintf('\n')
fprintf('\n')
disp('This work is free thanks to our sponsors and users graditude:')
fprintf('\n')
disp('<a href="http://www.wordans.com/affiliates/?s=2664&amp;a=904">-WORDANS: Make you own T-Shirt</a>')	
fprintf('\n')
disp('<a href="http://www.odicy.com/affiliates/?s=2662&amp;a=903">-ODICY: affordable luxury made easy</a>')
fprintf('\n')
disp('<a href="http://www.gigasize.com/affiliates/?s=2665&amp;a=902">-GIGASIZE: the easiest way to upload and share files</a>')
fprintf('\n')
disp('<a href="http://www.advancedmcode.org/">-Advanced M-code</a>')
fprintf('\n')
disp('<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8412682">-Donate </a>')
fprintf('\n')
disp('Thank you!')
fprintf('\n')
    

Contact us at files@mathworks.com