Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonathanballs/backgammony
A backgammon client with multiplayer support
https://github.com/jonathanballs/backgammony
ai backgammon gtk linux multiplayer p2p trustless
Last synced: 3 months ago
JSON representation
A backgammon client with multiplayer support
- Host: GitHub
- URL: https://github.com/jonathanballs/backgammony
- Owner: jonathanballs
- License: gpl-3.0
- Created: 2018-11-12T19:30:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T11:06:47.000Z (5 months ago)
- Last Synced: 2024-06-21T18:09:44.352Z (5 months ago)
- Topics: ai, backgammon, gtk, linux, multiplayer, p2p, trustless
- Language: D
- Homepage:
- Size: 1.99 MB
- Stars: 42
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-d - Backgammony - A Backgammon GUI for Linux built with Gtk. (Games / XML)
README
# Backgammony [![Build Status](https://travis-ci.org/jonathanballs/backgammony.svg?branch=master)](https://travis-ci.org/jonathanballs/backgammony)
Backgammony is a backgammon client for Linux written with Dlang and GTK. It supports local AIs as well as trustless network games. It's targeted towards casual play and thus forgoes the analysis and tutor features present in other backgammon software in favor of a more streamlined and pleasant user interface.![Screenshot](resources/screenshot.png)
## Installing
```
flatpak install uk.jnthn.backgammony
```## Artificial Intelligences
Backgammony currently only supports the GNU Backgammon artificial intelligence since there is no standard communication protocol like there is for chess. I am currently writing my own engine and will document the communication protocol (likely based on the Backgammony network play protocol) in an attempt to bring some standardisation to this area.## Network Play
Backgammony has support for both LAN and internet games matched through a remote server. Backgammony brings an innovative approach to network play - predominantly where it has to generate dice rolls. The algorithm uses a basic [commitment scheme](https://en.wikipedia.org/wiki/Commitment_scheme) to ensure that dice rolls are non-interferable and games are trustless. To view the dice roll implementation please inspect the DiceRoll class in the [networking package](https://github.com/jonathanballs/backgammony/blob/master/source/networking/package.d). The protocol lacks certain features notably the doubling cube and could not be considered to be complete. Future work will be invested in fleshing out and documenting the protocol.## Building
Backgammony is written in the D language so make sure that you have a D compiler and the Dub package manager installed. Navigate to the project directory and run:```
dub build && ./backgammon
# Or for flatpak (this installs gnubg inside the flatpak container)
flatpak-builder --install build-dir resources/linux/uk.jnthn.backgammon.json --force-clean --user
```Make sure that you install GNU Backgammon installed if you wish to play against an AI as Backgammony does not have an AI currently.
### A historic event: The first backgammon game in its 5000 year history that was truly trustless
![FirstGame](resources/firstgame.jpg)NB: The software crashed halfway through the game