{"id":20431506,"url":"https://github.com/jonthysell/uhpsamplecode","last_synced_at":"2025-03-05T05:44:59.444Z","repository":{"id":54324376,"uuid":"341638620","full_name":"jonthysell/UHPSampleCode","owner":"jonthysell","description":"Code samples implementing the Universal Hive Protocol.","archived":false,"fork":false,"pushed_at":"2022-06-10T04:15:35.000Z","size":120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-15T18:25:30.893Z","etag":null,"topics":["artificial-intelligence","board-game","chess","game","hive","hive-game","uhp"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonthysell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-23T17:42:57.000Z","updated_at":"2022-04-10T19:02:13.000Z","dependencies_parsed_at":"2022-08-13T12:01:01.555Z","dependency_job_id":null,"html_url":"https://github.com/jonthysell/UHPSampleCode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonthysell%2FUHPSampleCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonthysell%2FUHPSampleCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonthysell%2FUHPSampleCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonthysell%2FUHPSampleCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonthysell","download_url":"https://codeload.github.com/jonthysell/UHPSampleCode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241975136,"owners_count":20051428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artificial-intelligence","board-game","chess","game","hive","hive-game","uhp"],"created_at":"2024-11-15T08:12:02.549Z","updated_at":"2025-03-05T05:44:59.428Z","avatar_url":"https://github.com/jonthysell.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UHP Sample Code #\r\n\r\nThis repo contains code samples which implement the [Universal Hive Protocol](https://github.com/jonthysell/Mzinga/wiki/UniversalHiveProtocol) or UHP.\r\n\r\nThe UHP is a set of specifications for building software that play the board game [Hive](http://hivegame.com/). The UHP is designed to facilitate software interoperability among a community of developers who create Hive-playing AIs.\r\n\r\n## Sample Engines ##\r\n\r\n[![SampleEngine C++ CI](https://github.com/jonthysell/UHPSampleCode/actions/workflows/engines_cpp_ci.yml/badge.svg)](https://github.com/jonthysell/UHPSampleCode/actions/workflows/engines_cpp_ci.yml) [![SampleEngine C# CI](https://github.com/jonthysell/UHPSampleCode/actions/workflows/engines_cs_ci.yml/badge.svg)](https://github.com/jonthysell/UHPSampleCode/actions/workflows/engines_cs_ci.yml)\r\n\r\nIn the UHP, an \"engine\" is responsible for implementing all the logic necessary to play a game of Hive, like keeping track of pieces on the board, calculating the set of valid moves, and letting players play those moves. An engine is also where developers implement their AI in order to calculate the next \"best move\".\r\n\r\nThis repo contains sample engines written in different programming languages. Each represents a minimal implementation of a UHP engine - just enough code to fulfill the UHP specifications and play the base game of Hive without expansion pieces. They have no AI per se, so when asked for a \"best move\" they simply return a valid move they've calculated.\r\n\r\nThese sample engines are provided as starting points for would-be Hive developers. They are not optimized, or necessarily the best or only way to build a UHP engine. Use them to bootstrap your own UHP engine, whether by building directly on the existing code or just as inspiration your own implementation. Note, each has its own readme with specific build and setup instructions.\r\n\r\n## Copyrights ##\r\n\r\nAll code in this repo is free and unencumbered software released into the public domain.\r\n\r\nHive Copyright (c) 2016 Gen42 Games. This repo is in no way associated with or endorsed by Gen42 Games.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonthysell%2Fuhpsamplecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonthysell%2Fuhpsamplecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonthysell%2Fuhpsamplecode/lists"}