https://github.com/rsdoiel/gameset
A set of command line programs for implementing simple games.
https://github.com/rsdoiel/gameset
Last synced: 4 days ago
JSON representation
A set of command line programs for implementing simple games.
- Host: GitHub
- URL: https://github.com/rsdoiel/gameset
- Owner: rsdoiel
- License: gpl-3.0
- Created: 2022-10-01T19:09:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T19:37:55.000Z (8 months ago)
- Last Synced: 2025-04-13T11:41:15.436Z (2 months ago)
- Language: Go
- Size: 318 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
- Codemeta: codemeta.json
Awesome Lists containing this project
README
[](https://www.repostatus.org/#concept)
Gameset
=======A set of go packages and command line programs for modeling simple games.
The current gameset models dice and cards.
dice
----The dice packages models multisided dice. It is demonstrated by the program `roll`. The `roll` program accepts parameters describing the dice to be modeled in [Dice notation](https://en.wikipedia.org/wiki/Dice_notation).
deck
----The deck package models [playing_cards](https://en.wikipedia.org/wiki/Playing_card). It is demonstrated by the program `cards`. The `cards` program supports multiple types of playing cards and the back actions you might perform with a "deck" such as shuffle and deal. The `cards` program stores the state of the deck (including player's hands) in a file using JSON encoding. The `cards` program does not support rules or game flow. But instead it can be scripted such that you can simulate a card game like solitare or go fish.