Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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).

-1
votes
0answers
143 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 ...
-1
votes
0answers
16 views

How to save the card collection of a player in a collectibe card game in the database? [duplicate]

So I'm creating a CCG (Collectable Card Game) and I'm using an SQL server for my account profiles (playername, password, currency, etc.). However, I now stand for the decision on how to save Collected ...
1
vote
1answer
71 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 ...
0
votes
1answer
222 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 ...
2
votes
1answer
68 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 ...
0
votes
0answers
143 views

card game backend framework

I'm doing research on how to create the server-side backend of my own web-based cardgame. I'm an experienced developer, just not in the game dev area. I'll figure out how to best communicate with ...
0
votes
0answers
38 views

Can I copy a game mechanic from another card game without getting sued? [duplicate]

I've started developing a card game based on Greek Mythology. There is a card game called A Game Of Thrones Card Game that uses a mechanic I would like to use. The mechanic that card game uses is ...
0
votes
1answer
133 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 ...
20
votes
2answers
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 ...
0
votes
2answers
81 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 ...
2
votes
0answers
102 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, ...
0
votes
0answers
23 views

Reward player/players for not losing

I am thinking of developing a game based on a card game where the goal of the game is not to lose. For example, last player to still have a card on his/her hand loses. This game is based on a real ...
3
votes
1answer
503 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: ...
1
vote
2answers
544 views

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

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 ...
1
vote
2answers
216 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 ...
3
votes
3answers
2k 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 ...
0
votes
1answer
133 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 ...
5
votes
2answers
572 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 ...
0
votes
1answer
738 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 ...
1
vote
3answers
458 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 ...
2
votes
0answers
71 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 ...
0
votes
2answers
192 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 ...
2
votes
2answers
300 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 ...
1
vote
1answer
271 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 ...
0
votes
0answers
415 views

CCG Power Curve

I am new to this site so I don't exactly know how to use it well. My question I am trying to make a ccg however I am having a hard time figuring out how I would convert the ability of a card into ...
4
votes
3answers
500 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 ...
-4
votes
1answer
3k views

best way to creating card game on Android [closed]

I have a new idea for creating a new Uno like card game. I have Java programming experience but not in Android. What is the best way creating card game on Android ? I mean handling cards easily as ...
0
votes
1answer
104 views

SQLite Query from unknown table based on known column value single query

I'm working on a database to back up my online TCG. It's currently SQLite, but I'm going to transition it to a MySQL database later. Currently, I have three distinct types of cards with their own ...
1
vote
1answer
179 views

Personal Custom Card Game [duplicate]

I had the idea, to make a custom card game based off an Anime i like. I was wondering if it would be legal to have such printed out (using a custom card/board game service) for personal use. I would ...
3
votes
3answers
1k views

Collectible card game, cards and effects

Based on Design of a turn-based game where actions have side-effects I am building a card-game where cards can have side-effects be triggered under different circumstances. I was given a good idea ...
3
votes
3answers
466 views

CCG Design - How to define text descriptions

I'm designing a CCG/TCG game (with the Kotlin language), and I am looking for advice regarding the text of the cards. First of all, here is an example of one card, defined in XML: ...
4
votes
1answer
1k views

Card Masking in Phaser

Good Day, I'm new to Phaser and still learning about it to. I am challenging my self to create a simple animation of a card flip somewhat realistic rather that making use of a scale. This is ...
1
vote
0answers
67 views

Alternative to Rotation degrees or clock facing to describe cards angle

I'm working on some ideas for a system and hit a minor roadblock. I would like to identify the angle of a card placed on a playing field. Besides a clock facing identification (3:00 would be a ...
4
votes
2answers
139 views

Tournament ranking for card game bot fights - how to try new bot against existing ranking?

Let's say we run a tournament for 10 bots playing 1-1 fights in card game with significant randomness influence. To measure bot skills level we run round-robin with 10k matches per each pair. Ranking ...
11
votes
2answers
13k views

Displaying a particular sprite from spritesheet using Phaser

I am trying to make a card game using Phaser, the HTML5 JS framework. Because I'm a terrible artist and can't design my own, I'm using a free spritesheet of playing card images I found online. The ...
4
votes
1answer
990 views

How do I fairly distribute new powerful cards to players in a collectible card game?

I'm writing a game in which users start with a few cards. They use those cards to play against other players. The winner can steal a card from the other player. The aim is to get more/different/rare/...
1
vote
0answers
115 views

How to disable touch in Quintus?

I'm trying to build card game using the Quintus game engine. I have objects called Card. I can touch and drag it in the screen but I want just to touch and drag it ...
3
votes
3answers
4k views

How can I dynamically load the correct sprite from a sprite sheet?

I am making a simple card game in unity. The game is based on a standard 52-card pack, with identical backs for unique faces. In my particular game different cards are worth different values and have ...
0
votes
1answer
114 views

Where to place cards drawn from a deck of cards to a tableau

I've never written card games before and am currently coding up a simple card game, I have a deck of cards and they need to be shuffled (done) and then draw from the top deck into a tableau (centre of ...
0
votes
2answers
378 views

How should I access frame buttons from a controller in an MVC approach?

I'm developing an italian card game using the mvc pattern. I have the class GameFrame that contains the view. The user's card are buttons (JButton objects). I have 3 controllers: GameController: to ...
1
vote
1answer
200 views

Connecting players in an Online TCG

I've been developing single player games for a while now and I have decided to start working on a online PC(and maybe mobile) TCG. The design is almost complete and I can cover most of the code as far ...
1
vote
1answer
2k views

TCG - how to program cards as separate entities

So I'm planning to try making a card game (in Java) but I'm not sure what the best way to design it is. I understand the engine stuff but not how the cards should be coded an how they should interact ...
8
votes
4answers
607 views

Clientside anticheating in multiplayer game 1vs1

I'm developing a simple card game, where there will be a matchmaking system that will put you against another human player. This will be the only game mode available, a 1vs1 against another human, no ...
5
votes
1answer
655 views

P2P card game: Shuffling without knowing the final order?

So, I am conceptualizing a P2P trading card game. The issue is the network: knowing the identity of a card is giving a major advantage, so both clients need enough information about a card that they ...
4
votes
3answers
450 views

Is it worth having AI opponents step in for disconnected players in an online multiplayer card game

I have an online multiplayer card game resembling spades/bridge and I want to implement a system that autoplays when a client disconnects. Right now, there is a client and server. In the new system, ...
19
votes
8answers
14k views

Determining Poker Hands

I have been making a Texas Hold'Em game as a part of an assessment, and I have been mulling over how to examine the 7 available cards and determine if hands exist. The only possible method I can ...
4
votes
1answer
748 views

Online card games: game loop or event based?

The only games I've made have been the game loop variety. I'm just starting to think about building an online poker game where people could meet up in a lobby, etc. Cards seem event based... is the ...
5
votes
1answer
506 views

Rendering scaled-down card images

I have high-quality SVG card images, but they drastically lose their quality when I downsize them. I have tried two ways of rendering cards (using Inkscape and Imagemagics): 1) Render SVG to high-res ...
-2
votes
2answers
716 views

Simple Multiplayer CCG System

I am working on a cross plattform Multiplayer CCG (web, android, ios). Here are my goals in design: I want to game to be easly accessible and understandable for non CCG players within the first ...
3
votes
2answers
5k views

Turn-based Strategy Loop

I'm working on a strategy game. It's turn-based and card-based (think Dominion-style), done in a client, with eventual AI in the works. I've already implemented almost all of the game logic (methods ...