Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support alternative hand input formats #79

Open
suokko opened this issue Jul 18, 2020 · 1 comment
Open

Support alternative hand input formats #79

suokko opened this issue Jul 18, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@suokko
Copy link
Contributor

suokko commented Jul 18, 2020

There are potentially easier hand input formats to serialize. Supporting multiple formats can help user select the best one for their application.

A potential format would be strings with a suit symbol followed by all ranks in suit:

{"hands": { "S":["DJT863", "CA6432", "S972"], ... }}

64 bit integer bitmask for each hands which maps directly to libdds structure.

{"hands": { "S":32764, ... }} // 13 spades for south: ((1ull << 13) - 1) << 2
@suokko suokko added the enhancement New feature or request label Jul 18, 2020
@tameware
Copy link
Contributor

Formats that are easier for a human to read and enter could be useful too, e.g.,

{"nesw": [
    "AKQJ.AKQJ.T98.T9",
    "5432.5432.32.432",
    "T98.T9.AKQJ.AKQJ",
    "76.876.7654.8765"
]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants