Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonthysell/uhpsamplecode
Code samples implementing the Universal Hive Protocol.
https://github.com/jonthysell/uhpsamplecode
artificial-intelligence board-game chess game hive hive-game uhp
Last synced: about 2 months ago
JSON representation
Code samples implementing the Universal Hive Protocol.
- Host: GitHub
- URL: https://github.com/jonthysell/uhpsamplecode
- Owner: jonthysell
- License: unlicense
- Created: 2021-02-23T17:42:57.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-10T04:15:35.000Z (over 2 years ago)
- Last Synced: 2023-02-28T06:56:26.823Z (almost 2 years ago)
- Topics: artificial-intelligence, board-game, chess, game, hive, hive-game, uhp
- Language: C#
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# UHP Sample Code #
This repo contains code samples which implement the [Universal Hive Protocol](https://github.com/jonthysell/Mzinga/wiki/UniversalHiveProtocol) or UHP.
The 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.
## Sample Engines ##
[![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)
In 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".
This 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.
These 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.
## Copyrights ##
All code in this repo is free and unencumbered software released into the public domain.
Hive Copyright (c) 2016 Gen42 Games. This repo is in no way associated with or endorsed by Gen42 Games.