-
Notifications
You must be signed in to change notification settings - Fork 395
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
Test refactor: Serverless tests, updated new-game syntax #3842
Conversation
Looks good! I like the new test setup, feels more clojure and makes organising deck and hand easier. Is the deck sorted or randomised for the Corp, or does setting hand / deck suppress mandatory draw? Just thinking about how you could make sure you only have the specified cards in hand during corp turn. What is the reasoning behind including the card edn files in the repository? That hawk thing looks magical and I want it now. |
Mandatory draw: Moving cards to hand or trash happens after mandatory draw/start of turn, so if specified, EDN files: I included them for future proofing and the "serverless tests". Instead of relying on NRDB to be our source of truth, we can update the files as necessary when changes come through Nisei or from PRs to netrunner-json. This also handles any issues with CircleCI not being able to contact NRDB when it goes down or changes in ways we don't expect. I might previously have balked at doing this, but with no new cards coming (at least not for a long time), it seems best to explicitly allow for custom card creation through adding new files or editing existing ones. This also means that if/when we make changes to the card schema (which is something I plan on doing at some point), we don't have to rely on folks re-running Hawk: Yeah, it's way better than any of the solutions I'd created. It's the backing for a future change to card definition reloading that'll come with the individual card definition files PR. |
Some good points with regards to the edn files. What if we create our own "version" of netrunner-json as netrunner-edn that we can pull from using git? Or even change to pulling netrunner-json directly instead of going via NRDB? |
Oh that'd be very clever: maintain our own version, converted for our needs? I'd definitely be into that. I know the dudes over at ringteki considered this for a hot minute, but I believe they considered it too much work in the long run (as they only really need it during spoiler season). I'll experiment, see if it's worth it to do that! |
b89500f
to
cee2902
Compare
This is a re-up of the first part of #3782. I pulled out two of the smallest meaningful changes, and once it's merged will open the other two PRs that encompass the card definitions and the card tests.
Changes: