{"id":{"repo_id":"alberta","oai_identifier":"oai:ualberta.scholaris.ca:123456789/104512"},"canonical_url":"https://search.ndltd.org/etd/alberta/oai:ualberta.scholaris.ca:123456789/104512","repository":{"repo_id":"alberta","name":"University of Alberta","base_url":"https://era.library.ualberta.ca/oai"},"display":{"title":"Crafting a Hex Solver with Connection-Search and Expected-Work-Search","abstract":"Hex is the 2-player alternate-turn perfect-information board game created by Piet Hein in 1942. The board is an m×n array of Hexagonal cells that forms a parallelogram, or a rhombus when m equals n. Each player owns two opposing edges of the board. On a turn, a player colors an empty cell. The winner is whoever joins their two edges with a path of their color. Connection Search refers to any Hex-specific method to find connections. Threat Pattern Search, proposed by Jack van Rijswijck in 2000, finds cells belonging to opponent threats. Hierarchical Search, proposed by Vadim Anshelevich in 2002, finds point-to-point connections. Expected Work Search (EWS) is the 2-player game tree search algorithm created by Owen Randall et alia in 2024. Combining features of Monte Carlo Tree Search and Proof Number Search, EWS guides search by considering both expected win rate and expected proof tree size. In this thesis, we show how to craft a simple Hex solver based on Connection Search and EWS. We start with a minimax solver that prunes moves based on move ordering, inferior move detection, and safe cell-to-cell connection strategies. We measure the importance of these features and add them to a game-agnostic version of EWS. The result is a 1,000-line Python program that solves 6×6 Hex states.","abstract_html":"Hex is the 2-player alternate-turn perfect-information board game created by Piet Hein in 1942. The board is an m×n array of Hexagonal cells that forms a parallelogram, or a rhombus when m equals n. Each player owns two opposing edges of the board. On a turn, a player colors an empty cell. The winner is whoever joins their two edges with a path of their color. Connection Search refers to any Hex-specific method to find connections. Threat Pattern Search, proposed by Jack van Rijswijck in 2000, finds cells belonging to opponent threats. Hierarchical Search, proposed by Vadim Anshelevich in 2002, finds point-to-point connections. Expected Work Search (EWS) is the 2-player game tree search algorithm created by Owen Randall et alia in 2024. Combining features of Monte Carlo Tree Search and Proof Number Search, EWS guides search by considering both expected win rate and expected proof tree size. In this thesis, we show how to craft a simple Hex solver based on Connection Search and EWS. We start with a minimax solver that prunes moves based on move ordering, inferior move detection, and safe cell-to-cell connection strategies. We measure the importance of these features and add them to a game-agnostic version of EWS. The result is a 1,000-line Python program that solves 6×6 Hex states.","abstract_has_math":false,"creators":["Chen, Xinyue"],"institution":"University of Alberta","degree_name":"Master of Science","degree_level":"Master's","degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Hayward, Ryan(Computing science)"],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025-11","date_published":"2025-11","updated_at":"2026-11-26T21:04:02Z","subjects":["Hex","EWS","Move ordering","H-search"],"languages":["en"],"rights":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.7939/83220","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.7939/83220","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aalberta%3Aoai%3Aualberta.scholaris.ca%3A123456789%2F104512","prefix":"oai_dc"},"source_record":{"url":"https://era.library.ualberta.ca/oai?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aualberta.scholaris.ca%3A123456789%2F104512","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Hayward, Ryan(Computing science)"]},{"key":"dc:creator","label":"Author","values":["Chen, Xinyue"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-11-17T16:22:52Z"]},{"key":"dc:date.issued","label":"Date","values":["2025-11"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master's"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Alberta"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Hex","EWS","Move ordering","H-search"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.7939/83220"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Hex is the 2-player alternate-turn perfect-information board game created by Piet Hein in 1942. The board is an m×n array of Hexagonal cells that forms a parallelogram, or a rhombus when m equals n. Each player owns two opposing edges of the board. On a turn, a player colors an empty cell. The winner is whoever joins their two edges with a path of their color. Connection Search refers to any Hex-specific method to find connections. Threat Pattern Search, proposed by Jack van Rijswijck in 2000, finds cells belonging to opponent threats. Hierarchical Search, proposed by Vadim Anshelevich in 2002, finds point-to-point connections. Expected Work Search (EWS) is the 2-player game tree search algorithm created by Owen Randall et alia in 2024. Combining features of Monte Carlo Tree Search and Proof Number Search, EWS guides search by considering both expected win rate and expected proof tree size. In this thesis, we show how to craft a simple Hex solver based on Connection Search and EWS. We start with a minimax solver that prunes moves based on move ordering, inferior move detection, and safe cell-to-cell connection strategies. We measure the importance of these features and add them to a game-agnostic version of EWS. The result is a 1,000-line Python program that solves 6×6 Hex states."]},{"key":"dc:title","label":"Title","values":["Crafting a Hex Solver with Connection-Search and Expected-Work-Search"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Hayward, Ryan(Computing science)"],"dc:creator":["Chen, Xinyue"],"dc:date.accessioned":["2025-11-17T16:22:52Z"],"dc:date.issued":["2025-11"],"dc:description.abstract":["Hex is the 2-player alternate-turn perfect-information board game created by Piet Hein in 1942. The board is an m×n array of Hexagonal cells that forms a parallelogram, or a rhombus when m equals n. Each player owns two opposing edges of the board. On a turn, a player colors an empty cell. The winner is whoever joins their two edges with a path of their color. Connection Search refers to any Hex-specific method to find connections. Threat Pattern Search, proposed by Jack van Rijswijck in 2000, finds cells belonging to opponent threats. Hierarchical Search, proposed by Vadim Anshelevich in 2002, finds point-to-point connections. Expected Work Search (EWS) is the 2-player game tree search algorithm created by Owen Randall et alia in 2024. Combining features of Monte Carlo Tree Search and Proof Number Search, EWS guides search by considering both expected win rate and expected proof tree size. In this thesis, we show how to craft a simple Hex solver based on Connection Search and EWS. We start with a minimax solver that prunes moves based on move ordering, inferior move detection, and safe cell-to-cell connection strategies. We measure the importance of these features and add them to a game-agnostic version of EWS. The result is a 1,000-line Python program that solves 6×6 Hex states."],"dc:identifier.doi":["https://doi.org/10.7939/83220"],"dc:language.iso":["en"],"dc:rights":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"dc:subject":["Hex","EWS","Move ordering","H-search"],"dc:title":["Crafting a Hex Solver with Connection-Search and Expected-Work-Search"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_level":["Master's"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["University of Alberta"]},"updated_at":"2026-11-26T21:04:02Z"}