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

_[SAME CARD AGAIN]_ black cards, pick value error #43

Open
ThomasBisset opened this issue Jun 27, 2023 · 1 comment
Open

_[SAME CARD AGAIN]_ black cards, pick value error #43

ThomasBisset opened this issue Jun 27, 2023 · 1 comment

Comments

@ThomasBisset
Copy link

I'm currently making a script which uses the JSON files and have noticed a bit of a quirk with two specific cards so far:

    {
      "text": "You want _? You can't handle _[SAME CARD AGAIN]_!",
      "pick": 3
    },

And:

    {
      "text": "Let's take it from the top, and remember, you are _. Show me  _(SAME CARD AGAIN)_.",
      "pick": 3
    },

It should be "pick: 1" in both cases.

Both of these cards appear in the CAH Packs on the Google Docs Spreadsheet; I have not yet looked to see if there's any others. I'm guessing your script counts underscores but it also counts the ones surrounding the second blank space. I can't think of a more elegant solution other than adding a special case for each of the cards, unfortunately. I've done this in my own Python script, but JS isn't my jam!

@crhallberg
Copy link
Owner

crhallberg commented Dec 28, 2024

-emerges from chrysalis- Thank you! This is definitely an error with my script. I was thinking about changing it from _ to {1} and I think that would solve the ambiguity here.

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

No branches or pull requests

2 participants