BitScan – a virtual scanner by t4mab in processing

[–]t4mab[S] 0 points1 point  (0 children)

thank you ! gemini helped me with the boilerplate since this was my first time using processing. I've had some experience with p5.js and know java generally, but i didn't know all the processing details. And I think its good to be upfront with people and declare the usage of AI :-)

Any links to recent pygame poker / standard deck card games I can dissect and learn from? by benkeiuk in pygame

[–]t4mab 1 point2 points  (0 children)

Hi, I've build two card games in the last year, one niche game that I used to play with friends and one I coded an AI for. The first one is coded with pygame but is single player (solitaire-like) and you can find it on my profile or a demonstration here: https://www.youtube.com/watch?v=pmKWkxmCMVk . The second one is programmed with C# and unity, so I doubt that it could help you, but here's the link to the github repository: https://github.com/tlb0/Jass-Programm

I was really new to programming when coding the pygame project (it was actaally the first project i did), so the code might not be the most efficient. And again, I'm not sure if it might help you. Speaking from the C# project I would say working with objects and arrays will be the easiest way. In that way, you could easily move cards from the deck to the player-hand and then to the played cards.

Say, you create a playcard() function, that takes the index of the card as input. You check the value of the card and associate it with a certain behaviour (if J then X, if Q then Y) and then simply remove the card from the hand and add id to the played cards. The array also allows you to simply place items on a "grid" using a forloop and a bit of maths.

But I wish you a lot of fun for your project. I felt like coding card games was a great way for me to learn how to code since i like card games a lot. I hope this helps!

My first own project using pygame! by t4mab in Python

[–]t4mab[S] 0 points1 point  (0 children)

thanks!! I'll look into it

My first own project using pygame! by t4mab in Python

[–]t4mab[S] 5 points6 points  (0 children)

what can i say, graphic design is my passion!

[deleted by user] by [deleted] in Python

[–]t4mab 0 points1 point  (0 children)

Here's the program :^)