Commit Graph

66 Commits

Author SHA1 Message Date
arthurr 5dfdff17c1 Added the start of the db create
Need to do insert (obv), recall, search by name (get the whole name column), and
then display nicely.

Also renamed / used more correctly the "data" folder. I should use cache for
the downloaded .json file from scryfall though
2025-08-15 01:48:16 +01:00
arthurr 4f095c55ec Moved some files and started skeleton db 2025-08-15 00:55:47 +01:00
arthurr d168ca88ec Moved seperate things into separate files 2025-08-15 00:22:18 +01:00
arthurr 6d21f5e496 Added checking for the correct type 2025-08-14 23:45:42 +01:00
arthurr 906aaa1e59 Using ureq to download files
I might just throw out the TempFile thing - should actually save them somewhere. As
I think it would likely be useful for testing too
2025-08-13 20:22:49 +01:00
arthurr 6b4105ecd9 Selection and Highlighting appears okay
Still need to appropriately test with piles of visible cards > 1
2025-06-28 00:44:03 +01:00
arthurr 9f1eac75a0 Added Foundation to Pile movement
And made it make a bit more sense wrt Pile to Foundation
2025-06-28 00:30:35 +01:00
arthurr 16be88c703 Movement with only starting cards is mostly good 2025-06-28 00:23:13 +01:00
arthurr 7786cac7f5 Corrected Waste and Foundation highlighting
And moved a function to a more logical place in file
2025-06-27 23:35:49 +01:00
arthurr 67dc528c6a Partially complete the highlighted card movement
Once I write a "lowest visible card" function, then it should
be easy to do the rest
2025-06-27 23:26:01 +01:00
arthurr 3bc26915d1 Added quit window
Rather than instant quit
2025-06-27 22:27:52 +01:00
arthurr f7c5e68860 Added a couple of scripts to do with music 2025-06-27 20:54:54 +01:00
arthurr ee895d81eb Implemented the card moving
Need to actually check it's working though
2025-03-09 23:21:20 +00:00
arthurr b3b9fb61a5 Removed a useless Enum and started the moving to piles 2025-03-09 22:19:46 +00:00
arthurr e86c705b5b Added a help popup 2025-03-09 00:54:34 +00:00
arthurr 30884d7c35 Added card faces
Not super duper happy with consistency of sizes between different cards
2025-03-09 00:23:02 +00:00
arthurr 367ad78198 Writing some more test - I don't think all of them should be passing
I'm a bit unsure about the suit checking.
And the whole thing overall - it's kind of just working well first time. Not enough
real code is needing to be edited hah!
2025-03-08 02:51:52 +00:00
arthurr 8ce03a4b1c Moving to foundations seems to be alright
I think there's probably a few more tests I should write
2025-03-08 02:36:18 +00:00
arthurr 408978dd4f Added code to push to foundation
Need to write some tests. I have no idea if it works
2025-03-08 02:05:04 +00:00
arthurr 804ff3f8b1 Adding some pile and foundation stuff
Still not finished though!
2025-03-08 01:20:26 +00:00
arthurr 7e4cfc638b Fixed display of top card in waste 2025-03-08 00:15:49 +00:00
arthurr bcc493d5f9 Made use of the max turns thing
Unsure I'll ever use it... eh
2025-03-08 00:10:20 +00:00
arthurr b86df849bc Facedown cards seeeem to be alright 2025-03-08 00:01:47 +00:00
arthurr a64031e3bc Fixed waste display issue and added cards per draw 2025-03-07 23:58:52 +00:00
arthurr f3ecdb69a4 Deck to waste and waste to deck working-ish 2025-03-07 23:49:51 +00:00
arthurr 5106f6c53c Empty piles now use empty piles
And I fixed the bug where it had no bottom border. It's because I didn't tell
it to have a border on the bottom. Funny that!
2025-03-07 23:40:03 +00:00
arthurr 064139d698 Added an empty pile symbol 2025-03-07 23:34:24 +00:00
arthurr be6e36188c Bad deck -> waste working-ish
Display looks alright, so that's good!
2025-03-07 23:21:30 +00:00
arthurr 3c4f4ce0ad Added some of the wastes pile
It's not quite how I wanted to do it... but it'll work
2025-02-26 21:14:08 +00:00
arthurr df8347577e Started changing List to Paragraph
List has a bunch of extra bits I don't need.
2025-02-26 20:48:49 +00:00
arthurr 0ae0bf73b2 Added deck and the start of the waste
I think I'm going to need some mode advanced widget that I make myself though
2025-02-26 19:26:17 +00:00
arthurr dcbcb92376 Fiddled with some spacing and stuff 2025-02-25 23:59:53 +00:00
arthurr added3ad03 Unsure this is getting any better 2025-02-25 22:53:42 +00:00
arthurr 778a5c48e2 Drew a crap card 2025-02-25 22:27:36 +00:00
arthurr 12a16a5fdd Added some bad graphics stuffs 2025-02-25 21:43:15 +00:00
arthurr 400155b8ad Added some Klondike stuffs 2025-02-25 21:41:08 +00:00
arthurr 499020b904 "Cleaned up" some things and started on a possible Klondike struct 2025-02-24 23:52:17 +00:00
arthurr 71dab0cf5c Couple of clippy lints
Not 100% sure what the "must_use" is really for... so didn't "fix" them
2025-02-24 23:25:28 +00:00
arthurr 387c3f0beb Added a basic deck 2025-02-24 23:17:53 +00:00
arthurr 6f5d7d7361 Write some tests - fixed 2 errors in the only 2 "real" lines of code I wrote... 2025-02-24 22:54:56 +00:00
arthurr 086135abb5 Errors are passed through "properly" 2025-02-24 22:35:51 +00:00
arthurr ff801f259d Added some display stuff
For errors, and I guess just general displays

I should try extend into colour I think too, just for fun
2025-02-24 22:20:59 +00:00
arthurr 63452f76f9 Initial Commit for some cardstuffs 2025-02-24 21:42:06 +00:00
arthurr f0d851ebb3 Fixed up a couple of fields 2025-02-08 01:19:32 +00:00
arthurr d868ef1e90 Added a couple more enums and invalid-ish card list 2025-02-08 00:41:21 +00:00
arthurr a1728de503 Ran rustfmt and clippy 2025-02-07 22:38:20 +00:00
arthurr a14d2dcb75 Don't look at that awful test...
I have tested it on the Oracle cards - so should like... mostly work for cards

Except for, I think, mistakes? in the Scryfall database.
2025-02-05 00:13:48 +00:00
arthurr 66b22c1c30 Added a very poorly written test thingy
Started fixing a couple of mistakes
2025-02-04 23:45:53 +00:00
arthurr 993ac46954 Got most of the fields I think 2025-02-04 23:21:23 +00:00
arthurr f576fe6cc8 Added UUID
And fixed up the fact the promo types are optionally null/not there/empty/full
2025-02-04 22:40:51 +00:00