Back to Search
Start Over
Kalkulator za izračun verjetnosti pri pokru Texas hold'em
- Publication Year :
- 2017
-
Abstract
- Poker je priljubljena in precej razširjena igra s kartami, pri kateri verjetnost igra ključno vlogo pri določanju zmagovalca. Pri klasičnem igranju pokra v živo si igralec lahko pomaga z opazovanjem in branjem telesne govorice nasprotnikov in s tem izboljša svoje možnosti za zmago. V zadnjem desetletju pa se v živo igra vedno manjši odstotek iger, saj jih nadomešča igranje na spletu. Obstajajo številne spletne strani, ki preko aplikacij ponujajo igranje pokra. Te aplikacije pa igralcu omogočajo le vpogled v dogajanje na mizi in poteze nasprotnikov, zato si z opazovanjem telesne govorice nasprotnikov ne more pomagati. Ob pomanjkanju informacij za odločanje pri igranju na spletu pride v poštev predvidevanje nasprotnikovih kart na podlagi iskanja vseh dobitnih kart v določeni situaciji. Na spletu obstaja že veliko različnih t.i. poker kalkulatorjev, ki za različne variante kart izračunajo odstotke za zmago med igralci. Ti kalkulatorji pa temeljijo na vnosu svojih kart, kart na mizi, prav tako pa tudi nasprotnikovih kart. Zato sem se odločil, da izdelam malo drugačen kalkulator, ki od uporabnika ne zahteva vnosa nasprotnikovih kart, ampak pri danih uporabnikovih kartah in kartah na mizi sam predvidi vse možne dobitne situacije, ki bi jih lahko imel nasprotnik, pri tem pa izračuna odstotke za zmago za vsako situacijo. V prvem krogu igre pa zaradi velikega števila možnosti uporabi predvidevanje na podlagi metode Monte Carlo. Rezultat diplomske naloge je delujoča namizna aplikacija, ki deluje na operacijskem sistemu Windows, poimenovana Poker Assistant, napisana v ogrodju .NET (dotNET) v programskem jeziku C# (C Sharp). Uporabnik lahko simulira igro z izborom kart, pri tem pa ima na voljo različne načine nabora nasprotnikovih kombinacij in različna razvrščanja. Analiza rezultatov je pokazala, da metoda Monte Carlo ob visoko nastavljenem parametru števila ponovitev simulacij poda rezultat z napako do 3%. Čas računanja pa je ob visoko nastavljenem parametru števila ponovitev simulacij (več kot 500) in večji množici nasprotnikovih kombinacij kart (več kot 20) lahko tudi predolg za optimalno uporabo programa. Čas računanja v primerih, ko se ne uporabi predvidevanje z metodo Monte Carlo, je v le dveh od 28 različnih možnih situacij višji od 5 sekund. Torej je optimalna uporaba mogoča v 93% primerov. Poker is a popular card game that is based on probability. In a classic game of poker, where players sit at one table, they can increase their rate of winning with observing oponnent's reactions at their moves and opponent's body language. But in the last decade, more and more players are joining online poker communities. There are many websites that offer play of poker through their applications. These applications only show users general information, there are no options for observing the opponent's behavior. In such cases, a helpful source of information can be predicting the opponent's cards based on searching for every possible hand the opponent could have. There are many poker calculators available online that can calculate percentages for winnig a specific game amongst players in different scenarios. Those calculators are based on user's input, which consists of entering their cards, cards on the table and opponent's cards. I have decided to make a different type of calculator that doesn't demand opponent's hands as input, but instead automatically calculates all possible hands opponent could have for any given situation as well as it calculates winning percentage for each of those hands. In Pre-Flop scenarios (no cards on the table) calculator speculates actual results with the Monte Carlo method. A desktop application that runs on the Windows operating systems was produced within the thesis. It was written in .NET (dotNET) framework in C# (C Sharp) programming language. It is called Poker Assistant and it allows user to simulate different scenarios through clicks on card icons. The user can also choose different settings for finding opponent's cards and different sorting orders. The analysis of results has shown that the Monte Carlo method gives results with maximum 3% error when the number of simulations is set to high values. When number of the opponent's hands combinations is large (more than 20) and number of simulations is set to high values (more than 500), the program takes too much time to calculate for optimal use. Elapsed time for calculating results in scenarios where the Monte Carlo method is not used is less than 5 seconds in 26 out of 28 different scenarios. Thus the program allows optimal use in 93% of those cases.
Details
- Language :
- Slovenian
- Database :
- OpenAIRE
- Accession number :
- edsair.od......3505..2ea57e9cb2f0d140eeb5207c3790a335