Interpreter spoločenských hier hraných na mape zloženej zo štvorčekov
Interpreter of Board Games Played on a Map Consisting of Possibly Movable Square Tiles
Interpret společenských her hraných na mapě složené ze čtverečků
bachelor thesis (DEFENDED)

View/ Open
Permanent link
http://hdl.handle.net/20.500.11956/193131Identifiers
Study Information System: 261826
Collections
- Kvalifikační práce [11349]
Author
Advisor
Referee
Klímek, Jakub
Faculty / Institute
Faculty of Mathematics and Physics
Discipline
Computer Science with specialisation in Computer Graphics, Vision and Game Development
Department
Department of Software and Computer Science Education
Date of defense
6. 9. 2024
Publisher
Univerzita Karlova, Matematicko-fyzikální fakultaLanguage
Slovak
Grade
Good
Keywords (Czech)
spoločenská hra|interpreter|mapa zložená z dielikov|zadávanie pravidielKeywords (English)
board game|interpreter|map consisting of tiles|inputting rulesCieľom tejto bakalárskej práce bolo využiť spoločné vlastnosti niektorých spoločen- ských hier na vytvorenie univerzálnej aplikácie, v ktorej je možné tieto hry hrať. Kon- krétne sme sa zamerali na hry, ktoré sú hrané na mape zloženej zo samostatných štvorco- vých dielikov. Hráči môžu dieliky otáčať, premiestňovať a pridávať, a tým hraciu plochu meniť. Strany dielikov spájajú cesty, po ktorých sa pohybujú hráči. Používatelia by mali mať možnosť takejto univerzálnej aplikácii zadať pravidlá ľubovoľnej hry tohto typu a následne v nej túto hru hrať. Zadávanie pravidiel by malo byť jednoduché aj pre používa- teľov bez znalosti programovania. Rozhodli sme sa, že pravidlá budú používatelia zadávať do osobitných súborov. Pre nich sme navrhli štruktúru, ktorá popisuje, z akých dielikov sa hra skladá a aké sú jej pravidlá. Súbory s pravidlami sú vo formáte JSON, ktorý je ľahko čitateľný pre ľudí a zároveň je vhodný na spracovanie počítačom. Vytvorili sme program, ktorý tieto pravidlá načítava a na základe nich vytvorí grafické používateľské rozhranie, v ktorom je možné danú hru hrať. Program kontroluje dodržiavanie pravidiel, zvýrazňuje možné ťahy a vyhodnocuje kto vyhral.
Goal of this bachelor thesis was to take advantage of common features of some board games to create a universal application, in which these games can be played. We focused on games played on a map consisting of individual square tiles. Players can rotate, move and add these tiles and therefore change the playing board. Players move on paths, which connect sides of tiles. Users should be able to input rules of any game of this type into this universal application and consequently play this game in the application. Inputting the rules should be easy even for users not capable of programming. We decided that users will input the rules into separate files. For them, we designed a structure which describes the rules of the game and describes tiles that make up the board. Files with rules are in the JSON file format, which is easily readable by humans and also suitable for computer processing. We made a program which can load these game rules and based on them create a graphical user interface in which the game can be played. The program enforces following of the rules, highlights possible moves and evaluates who had won.