-
Notifications
You must be signed in to change notification settings - Fork 1
Cards in hand identified by independent index #55
Comments
Giving cards an |
Yes. And I assume it would be best if it's different for every card (so no shared |
Should be assigned on game creation then |
I'd like to hear from @pernilsalat and what advantages this would have, before begining working on it. |
Right now zero, it will probably be useful in the future (especially if we want to allow a player to reorganize cards in his hand in frontend). Wait, I assigned this to v0.1.0? Woah, I must've been drunk. |
Thinking about Issue #41 it would probably be useful to have cards identified by id, those on the board too. |
Yes, as card move zones they should keep their id. |
It seems like we are working on targets before giving id to cards. |
I know I don't 🙃 |
The thing is... Knowing the I'd like frontend to have the easiest job here. Therefore, I'd definitely go for |
Maybe will re-open if find any reason to do so. |
After @pernilsalat suggesting again to use id's in order to solve the problems seen in #119, I reopen this issue. |
After doublechecking #122, almost everything is done on backend. I'll be double-checking the From here, @pernilsalat you should be able to work on frontend. |
I am first priorizing the server and travis, then I'll get on this ticket |
I begun the required changes on the branch mod-new-paradigm. |
If you've done a relevant change (such as grouping the test) can you please issue the pull request already and merge to develop? We should merge quick and small changes often, rather than big merges whenever possible |
Currently taking a look at the missing files to determine the needed tests |
|
Soooo... this is funny, |
We are changing almost everything (mostly backend) so we have an array of all the cards (therefore, identified by an independent index). Cards in this array will have an attribute showing the zone in which the card is. That means a change from "Zones with cards" to "Cards in zones".
Everything from
backend/src/rules
is already changed, including tests.backend/src/api
needs to have the tests changed so they use the format "one-test-file-per-src-file".Now the following needs to be done:
Double-check backend tests (and add any that's needed/missing)
Tests for
api/base.clj
: Put the current ones together.Tests for
api/base.clj
: Test(play-card-as-player
Tests for
api/conversions.clj
,api/generators.clj
andapi/handler.clj
. This should be pretty easy, since most of those don't do much.Adapt all tests on
backend/old_tests/
(this should be covered by the previous two points, but just in case...)The text was updated successfully, but these errors were encountered: