Questions tagged [card-game]

A game based on the concept of a deck of playing cards. Either the standard 52 card deck (poker, solitaire) or a custom deck defined within the game (Magic the Gathering, Munchkin).

Filter by
Sorted by
Tagged with
2 votes
1 answer
96 views

How to Develop Card Combat System/Manager

I'm looking for some guidance on how to develop a card combat system similar to Legends of RuneTerra auto combat. I'm a bit lost on how to get the proper card info from each drop zone (5 each player) ...
SmileyTheMimic's user avatar
0 votes
1 answer
170 views

How to drag and drop complex objects (with multilayered textures and text) in Godot?

Newbie to Godot here. My idea is to create a deck building game, inspired by Slay The Spire or Across the Obelisk. I have come to a problem that I can not seem to find the answer. So, the card object ...
wowowhale's user avatar
0 votes
0 answers
58 views

Sequencing interaction between rendering/animation and game logic in Poker game

I am building a two-player(CPU-User) Poker application with C++ and OpenGL. Currently the application just renders the graphics, keeps track of which button is pressed, value entered in textbox ...
Incompleteness's user avatar
0 votes
0 answers
31 views

How to make detail tab show information about clicked card?

I'm attempting to create a card game as a new Unreal Dev. Currently I have a UI for the board. That UI has children for the Hands, Field, and Card Details (A window to the side of the field that has a ...
GodelComplete's user avatar
1 vote
1 answer
213 views

Fanning cards in 2D leads to cards continuing to move forever

I'm using this video as guide for my Godot 3.5 project, but for some reason the code does fan the card but also the cards keep moving and spreading forever. The code: ...
Progs's user avatar
  • 93
0 votes
0 answers
134 views

LocalPosition always (0, 0, 0) on UI component after assigning it in script

I have a card prefab setup to render a card like this: I'm in the process of creating a hand prefab to contain a set of cards and manage the animation to slide in each of the cards. Each hand has 5 ...
Samuel Slade's user avatar
0 votes
2 answers
121 views

Name for groups of cards in a card game [closed]

What would you call the groups of cards in a card game, including both piles (draw, discard...) and hands? I'm coding a generic card game engine and I've been unable to find a good name for the base ...
Jérémy Quentin's user avatar
0 votes
1 answer
118 views

Idiomatic Way to Create Card Instances in Unity

I'm extremely new to Unity, and I'm trying to figure out if this design makes sense. I'm creating a card game in which multiple instances of the same card will exist. I'm trying to determine if the &...
Steve P.'s user avatar
  • 123
0 votes
1 answer
332 views

How would you implement card effects in a card game?

I'm making a card game right now and I am hesitating in how to design my cards. Let me explain I have a card that draws two cards from the deck when played. The way I'd code it is I'll create a class ...
younes alaoui's user avatar
0 votes
1 answer
104 views

Manage game states of a card game with MVC

I am creating a Yugioh java game with MVC. I was wondering wich is the better way to manage game states with MVC? I tought maybe I can use State Pattern in Model section with DrawPhase, ...
Zetsu_Zetsu's user avatar
0 votes
1 answer
608 views

How to use OnDrop on non-UI elements?

I'm new to Unity and coding (C#), so sorry if this is a novice question. Is the OnDrop function only usable for UI elements? I am currently making an ARPG Card game ...
Michael Surs's user avatar
0 votes
0 answers
180 views

How do I store card game states in a NodeJS app hosted on Heroku?

I have a turn based card game node app, and in development env I store all game states in memory (1 object per "game" in a big parent object) since these objects are constantly changing and ...
Roy's user avatar
  • 1
0 votes
2 answers
1k views

Help Me Make Sense of the Canvas and Text-Based Non-UI Objects in Unity

I am trying to wrap my head around the concept of the Canvas in Unity and its many uses especially outside of user interfaces. However, I cannot really find a good tutorial that digs deep enough into ...
Gergely Kovacs's user avatar
1 vote
0 answers
25 views

How do I change a sprite using code from another node? [duplicate]

I'm trying to make a program in Godot where the player can put a bunch of images into a folder, and when the button is pressed, have the image appear as a sprite on the screen. With the current code, ...
Anonymous's user avatar
0 votes
0 answers
1k views

How to align cards in hand in a circular way?

I am working on a card game in Unity, and by now I instantiated my cards on a canvas. Now I would like to align them like I am holding them in real life. ...
Matea Simeunović's user avatar
0 votes
1 answer
225 views

Attaching scripts which trigger on specified events to objects

I'm new to Unity and C#. For concreteness, I'll phrase the question in terms of building a TCG like Magic: the Gathering or Hearhtstone, although the method seems of more general utility. Suppose we ...
Sal's user avatar
  • 103
0 votes
0 answers
840 views

How to implement special abilities in turn based card game (and in games in general)?

I am wondering how games like dota, or Magic Arena implements their hero/ card special ability system, and more specifically how do they "Hook" their special ability triggers to the game ...
downstroy's user avatar
  • 101
0 votes
0 answers
58 views

Text based cards tracker

I wish to build a card tracker that reads in game text and keeps track on the cards that are out. Like an Overwolf app, but for a card game. I mailed Overwolf and asked what are my options, they ...
Cohensius's user avatar
  • 124
1 vote
1 answer
683 views

Adding JavaFX GUI to an MVC based terminal card game

I have written a version of Castle that so far plays through the terminal. I have recently refactored my code (which can be found here) to use the MVC design pattern. After I have added a GUI I will ...
theJavaGuy's user avatar
4 votes
1 answer
145 views

How can I make a solitaire game that can be solved?

It was not difficult to mix the cards and make them in solitaire format. But sometimes there are games that can't be solved. (For example in 3 turn mode) How can I make sure that the game can be ...
msm082919's user avatar
  • 161
1 vote
0 answers
578 views

2-player online card game architecture [closed]

This is the first game I have developed. Please correct me if I'm mistaken. I want to build an online 2-player turn based card game (Shithead). I want to code it in Java as that is what I have most ...
theJavaGuy's user avatar
6 votes
5 answers
668 views

Best strategy when player left the online multiplayer game

I have developed a online multiplayer HTML5 card game. This game can be played by four players. Now I am having this confusion on what to do when a player left the game in the middle. Possible ...
Bhushan's user avatar
  • 161
2 votes
2 answers
302 views

Modify the effect of a card being played

I'm trying to recreate a simple card game. Each played card has an action (draw extra cards, peek at draw stack, eliminate an opponent card, etc). Once played, it goes on a stack, and the card effect ...
Zibelas's user avatar
  • 4,291
1 vote
0 answers
48 views

Where to store constantly changing game data such as duels data?

I'm making a discord bot which allows players to collect and duel cards. All the cards, players and other data is stored in MongoDB but where should I store duels data? Duels data will keep changing ...
Light Yagami's user avatar
0 votes
0 answers
199 views

How to code a lot of cards in a trading card game java [duplicate]

I want to make a trading card game like Yu-Gi-Oh or Magic. I have a lot of cards in my game and even the user can make new cards. Cards are objects and they have attributes like HP and Mana ,etc but ...
amir na's user avatar
  • 121
0 votes
0 answers
55 views

How to program rules for card game [duplicate]

Hi I want to program a card game, in my game each card can do multiple actions, depend on the situation in which the player is facing. For example There is an "Attack" card which can attack another ...
Yedidya kfir's user avatar
1 vote
0 answers
705 views

How to sort cards' on-screen positions by their suit?

I have a 13 cards and sort button. When I click that button, I want all the cards of each suit to be grouped-together on screen. So if I have 4 diamond cards in my 13-card hand, all 4 diamonds must ...
Deepak Gaurav's user avatar
1 vote
1 answer
353 views

How to find sequences of consecutive cards of the same suit in a hand, including wild cards? (Indian Rummy)

I have a hand of 13 cards (chosen from 2 standard decks of 52 cards + 4 jokers, so it's possible for the same card to appear multiple times). I want to search this deck to find sequences according to ...
Hardik.N's user avatar
0 votes
1 answer
1k views

Algorithm to solve a battle in a card game

I am trying to write a solver for a sort of card game. I mainly do that for fun, and also to be able to learn a bit about the different types of algorithms I could use for this problem. The rules of ...
Romain Gros's user avatar
2 votes
1 answer
106 views

Poker AI's designed for casual play

DISCLAIMER: So I asked this on StackOverflow and was told it was not a good question for the community but was suggested to check here. If this question sucks or just doesn't belong here either, feel ...
wem18's user avatar
  • 21
0 votes
1 answer
688 views

How to sort poker hands? c++

The examples below come from the answer by Steven Stadnicki in Determining Poker Hands Suppose a player get a hand like A9772. I would like to store the hand as either 77A92 or, better yet, 7A927. A ...
RangerBob's user avatar
  • 101
20 votes
2 answers
4k views

How does UNO determine how often do +4,+2 & other special cards occur in a deck/game?

For UNO-like card games, what factors would one consider when they wanted to set a reasonable proc rate of receiving a special card (for example in UNO's case: +4,+2, color-wheel, reverse, skip)? What ...
User3.14159265's user avatar
0 votes
2 answers
95 views

How to use CC photos from Wikimedia properly?

Here is the situation: I want to create a (perhaps commercial) offline trading card game. Like Magic: The Gathering. My game will be about animals. So I want to use CC photos from Wikimedia as an art ...
Whittesunset's user avatar
3 votes
0 answers
187 views

Card displacement in Unity

Following a tutorial on Youtube, https://www.youtube.com/watch?v=P66SSOzCqFU, I'm trying to make a card game that uses dragged cards. When I drag a card it's supposed to stay centered with the mouse, ...
Nylffn's user avatar
  • 31
1 vote
1 answer
2k views

Overuse of Canvas in Unity3D

I'm currently trying a new approach on a Card Game in Unity. To capsuling my Card Prefab i have a root GameObject with the ...
Smartis has left SO again's user avatar
3 votes
1 answer
2k views

How to create card layout in a trading card game Libgdx

I am trying to create a card layout for my trading card game. Right now I use this code: ...
Andy's user avatar
  • 45
1 vote
2 answers
2k views

Where and how to store players collection in a computer card game?

I am developing a trading card game ( something like Hearthstone but not as complex) and I am faced with the following problem: I don't know what is the optimal way to store players collections and ...
Andy's user avatar
  • 45
1 vote
2 answers
299 views

Determing winning on the server side or client side?

I am using JavaScript + Node.js+Websockets to develop a multiplayer card game. In my single game version the Win determining calculation is done on the client side (of course) with a function. It ...
Frostless's user avatar
  • 113
3 votes
3 answers
6k views

How to make card movement behave like those in Hearthstone and Eternal CCG?

I'm trying to achieve the same effect that cards in Hearthstone and Eternal CCG does, for example, cards behave as they were a type of "crane", when the cards move, their body is tilted towards the ...
ULI-R0's user avatar
  • 133
0 votes
1 answer
277 views

How to share some elements of array with different players on Photon in the same Room? Unity3d

I want to assign cards to different players in the room. I've a Class "Cards" that contains an array of 52 cards like this: "2_of_spades","3_of_spades"....... and so on. All i want is to assign random ...
Faizan Khan's user avatar
6 votes
2 answers
2k views

How to create data driven effects/abilities for collectable card game

I'm trying to create cards for a ccg/tcg that are completely "data-driven" from an xml/json/external file. I've read multiple articles on this issue already, even here on stack exchange, but i can't ...
Arnold from Tinytouchtales's user avatar
0 votes
1 answer
1k views

How should I store trading cards?

I'm working on a Magic-esque TCG in Unity. Currently, the cards themselves are all prefabs: I have a Satyr Archer prefab, a Candle Wisp prefab, etc. This works fine for now, since I only have a few ...
Somatic's user avatar
  • 249
1 vote
3 answers
563 views

Card game design, converting cards back into gold

I'm working on a collectible card game on the card game platform dulst. https://dulst.com/nasuverse I want to implement a mechanic for players to convert their unused cards back into a currency so ...
Harry's user avatar
  • 167
5 votes
1 answer
301 views

How are Spot It cards generated?

Spot It is a card game 55 cards. Each card has exactly 8 symbols on it (though the total number of different symbols used in the 55 card set is 57). For any two cards in the deck, they share exactly ...
fbrereto's user avatar
  • 423
1 vote
2 answers
3k views

How should I implement card effects in a card game?

I've been trying to program a video game adaptation of the popular trading card game "Magic: The Gathering". If you've played MTG before, you'll know most cards have an effect, which is activated at a ...
Xander Storme's user avatar
7 votes
3 answers
3k views

Displaying text on a 3D plane

I am busy with a pet project where I am trying to create a Collectible Card Game in 3D. These cards have Hp and Damage etc. but I cannot find a way to neatly display these values. I tried to use a ...
Halmato's user avatar
  • 81
0 votes
2 answers
251 views

Adversarial Search AI having problems with too many choices

I'm a game designer working with a set of coders trying to create a card game. Currently we're trying to implement a drawing mechanic in which you choose which card you draw, but the Adversarial ...
user5262541's user avatar
2 votes
2 answers
601 views

Hand cards auto arrangement

I'm making a card game with libgdx scene2d and what I'm trying to achieve is auto arrange the cards in a way the all fit the screen. This is what it looks now when the hand is full: I have done ...
nrallakis's user avatar
1 vote
1 answer
321 views

How to give each player in card game the same shuffled deck?

I'm writing a card game in Swift. The idea is to make it work on the Apple Game Center framework. I've noticed an issue which I am not sure how to address. I need the current game data to be the ...
zardon's user avatar
  • 175
4 votes
3 answers
632 views

Game Design - Challenging a player in an RPG-like game without removing easy cards

I'm designing a card game that I'm implementing on the computer that mirrors some gameplay aspects of dungeon crawlers and RPGs. The player's object is to survive as long as possible from the ...
sneelhorses's user avatar