Popis: |
Texas hold'em je zvrst poker igre, ki je navdušila veliko ljudi v začetku 21. stoletja. Gre za zelo popularno igro z 52 kartami. Od klasične poker igre, kjer dobi posamezen igralec pet zaprtih kart (karte, ki jih vidi le posamezen igralec), se razlikuje v tem, da dobi posamezen igralec samo dve zaprti karti. Zaprtim kartam sledi pet skupnih odprtih kart (karte, ki jih vidijo vsi igralci), s pomočjo katerih se tvori zmagovalna kombinacija. Pri tej zvrsti je veliko več možnih poti do končnih kombinacij kot pri klasičnem pokru, zato je igra toliko bolj zanimiva. Namen diplomskega dela je izdelati program za igranje igre poker texas hold'em za dva igralca. Program vsebuje grafični vmesnik in umetno inteligenco (poker bot). Umetna inteligenca vsebuje algoritem, ki smo ga razdelili na dva dela. Prvi del je igra z zaprtimi kartami in ena faza stavljanja. Drugi del je kombinacija zaprtih in skupnih kart, kjer so tri faze stavljanja. Algoritem v prvem delu uporablja pravila za igranje z zaprtimi kartami. V drugem delu, v igri s skupnimi kartami, pa algoritem igra po načelu situacijske igre in izkušenj avtorja. Pri tem se na nobenem mestu ne uporabljajo matematični elementi, kot je verjetnost. Poker bota smo testirali s tremi različnimi nasprotniki. Nasprotniki so bili človek in dva poker bot programa. V dvobojih proti programoma je naš poker bot dosegel dobre rezultate. Texas hold'em is a type of poker game played with 52 cards. The game has impressed many people in the early 21st century. From the classic poker game if differs in that all the players get two closed cards (cards of individual player) instead of five. Best combination of five cards formed from starting and community cards wins the pot. Texas Hold'em has a lot more possible combinations to form the winning hand than classic poker game. The porpouse of diploma is to build software for playing poker texas hold'em heads up. Software includes GUI and artificial intelligence named poker bot. AI includes an algorithm, which is divided in two parts. First part is preflop phase and one stage of betting. Second part is postflop phase where are three phases of betting. Algorithm in preflop phase is based on common rules for playing preflop hands. In second phase the algorithm is playing with the rules of situation play and experiences of author. No mathematics elements are used in AI. Poker bot was tested against three opponents. One of the opponents was the author of diploma and two other poker bots. In games against the other poker bots, our bot achieved good results. |