Skip to content

Conversation

jimmytty
Copy link
Contributor

@jimmytty jimmytty commented Sep 5, 2025

  • difficulty set to 8.
  • .input.hands and .expected mapped to TEXT -- json array.
  • added the file instructions.append.md.

@IsaacG IsaacG added x:action/create Work on something from scratch x:module/practice-exercise Work on Practice Exercises x:rep/large Large amount of reputation x:size/large Large amount of work labels Sep 5, 2025

INSERT INTO tests (uuid, description, hands, expected)
VALUES
('161f485e-39c2-4012-84cf-bec0c755b66c', 'single hand always wins', '["4S 5S 7H 8D JC"]', '["4S 5S 7H 8D JC"]'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're using structured data, would a nested array make sense here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 Would it be better to concatenate the hands using line breaks? For example, instead of

["4D 5S 6S 8D 3C", "2S 4C 7S 9H 10H", "3S 4S 5D 6H JH", "3H 4H 5C 6C JD"]

we should use:

4D 5S 6S 8D 3C
2S 4C 7S 9H 10H
3S 4S 5D 6H JH
3H 4H 5C 6C JD

?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I generally prefer providing the data in the easiest-to-use format to make the exercise about the actual exercise and not string parsing, as much as possible.

Whichever you think is the easiest to use?

@IsaacG IsaacG changed the title * add practice exercise: poker Add practice exercise: poker Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:action/create Work on something from scratch x:module/practice-exercise Work on Practice Exercises x:rep/large Large amount of reputation x:size/large Large amount of work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants