Tato bakalářská práce se věnuje populární karetní hře prší z pohledu teorie her. Cílem této práce je návrh, implementace a vyhodnocení strategií pro tuto karetní hru pomocí simulačního programu, který je vytvořen v programovacím jazyce Python. Nejprve jsou definovány důležité herně-teoretické pojmy, se kterými se pracuje dále při popisu karetní hry prší. Poté se vybrané strategie testují proti náhodnému hráči za použití simulačního programu. Výstupem programu jsou výsledky, které nám říkají procentuální úspěšnost jednotlivých strategií z pozice začínajícího hráče i hráče, který hrál jako druhý. Z výsledků je patrné, že nejúspěšnější implementovanou strategií je strategie zaměřená na obranu. Ta se drží jednoduchého pravidla: drž speciální karty v ruce, dokud nejsi nucen je zahrát. Práce také potvrzuje, že hráč, který zahajuje kolo, dosahuje vždy větší úspěšnosti než hráč se stejnou strategií hrající jako druhý.
Klíčová slova:
Python; Prší; Strategie; Simulace; Teorie her
Název práce:
Popular card games from a game theory perspective
Autor(ka) práce:
Müller, Roman
Typ práce:
Bachelor thesis
Vedoucí práce:
Chrobok, Viktor
Oponenti práce:
Rejthar, Jan
Jazyk práce:
Česky
Abstrakt:
This bachelor thesis examines the popular card game “prší” from a game theory perspective. The aim of this thesis is to design, implement and evaluate strategies for this card game using a simulation program developed in programming language called Python. Firstly, important game-theoretic concepts are defined to be used later in the description of the card game “prší”. Then, selected strategies are tested against a player playing random cards, using the simulation program. Output of the program are results, which tell us the percentage success of each strategy from the position of a guy that went first as well as second. The results show that most successful strategy implemented is the defence-oriented strategy. This strategy follows a simple rule: hold special cards in your hand until you are forced to play them. This thesis also confirms that the player who starts the round always achieves a higher success rate than the player with the same strategy that starts second.