# A card game based on programming?

**URL:** <https://forum.kirupa.com/t/a-card-game-based-on-programming/639282>\
**Category:** programming\
**Created:** [January 14, 2019, 10:01pm UTC](https://forum.kirupa.com/t/a-card-game-based-on-programming/639282 "2019-01-14T22:01:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [January 14, 2019, 10:01pm UTC](https://forum.kirupa.com/t/a-card-game-based-on-programming/639282/1 "2019-01-14T22:01:55Z")

</div>

So I caught a glimpse of these cards the other day and had the immediate reaction of, “Oh! A card game based on programming?!? Cool!”

> **[code:deck classic - Playing cards for developers](https://varianto25.com/playing-cards/code-deck-classic)**
>
> A cool playing card deck for developers.

Of course these ended up just being regular playing cards with some code embedded in their visual design.

Then I got to thinking, would it be possible to create a game with aspects of programming with regular playing cards? Or maybe a card game with specialized cards (like cards against humanity or magic the gathering) based on programming? It sounds like a compelling idea, but I immediately realized it’s hard enough to program normally with a compiler telling you when you did wrong. How would you expect that to work reliable within the context of a card game?

But _then_ I thought some sort of augmented reality app on your phone could work as the compiler to validate your work. Phones are abundant enough, and cards should be quite easy to recognize with off-the-shelf libraries. And part of the challenge could be making a program that actually runs.

Anyway, I haven’t thought much further than that, like what kind of play mechanics would be involved, or how you could make something like this even remotely be any fun (multiplayer interactions, etc.). Just thought I’d throw it out there to see what other people thought, or maybe if anyone’s heard of something like this already - something I never thought to even check.

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [January 15, 2019, 6:55am UTC](https://forum.kirupa.com/t/a-card-game-based-on-programming/639282/2 "2019-01-15T06:55:30Z")

</div>

> [@senocular](#):
>
> or maybe if anyone’s heard of something like this already - something I never thought to even check.

> **[Computer programming in the punched card era](https://en.wikipedia.org/wiki/Computer_programming_in_the_punched_card_era)**
>
> From the invention of computer programming languages up to the mid-1970s, most computer programmers created, edited and stored their programs line by line on punch cards.
> A punched card is a flexible write-once medium that encodes data, most commonly 80 characters. Groups or "decks" of cards form programs and collections of data. The term is often used interchangeably with punch card, the difference being that an unused card is a "punch card," but once information had been encoded by punching ho...

* * *

:evilsmirk:

On a more serious note, I’ve seen a few AR+card related things, here one that comes to mind:

[https://twitter.com/LinguaBrowse/status/1051832892790382592](https://twitter.com/LinguaBrowse/status/1051832892790382592)

* * *

I can imagine a game where each card is an assembler/bytecode instruction, and each player plays a hand in a round where you try to optimize the output based on turn-based input. The player with the best hand would win for that turn based on evaluating the instructions.

---

<div class="post-metadata">

**Author:** ![tbo](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@tbo](https://forum.kirupa.com/u/tbo)\
**Post date:** [January 15, 2019, 10:16pm UTC](https://forum.kirupa.com/t/a-card-game-based-on-programming/639282/3 "2019-01-15T22:16:27Z")

</div>

I would like a card themed after myself. When you pull the card, an accidental infinite loop is applied and the deck bursts in to flames

---

<div class="post-metadata">

**Author:** ![prg9](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@prg9](https://forum.kirupa.com/u/prg9)\
**Post date:** [January 16, 2019, 4:03pm UTC](https://forum.kirupa.com/t/a-card-game-based-on-programming/639282/4 "2019-01-16T16:03:06Z")

</div>

Are you thinking to move forward with this AR idea and develop something?

> [@senocular](#):
>
> Phones are abundant enough, and cards should be quite easy to recognize with off-the-shelf libraries.

Out of interest, what approach would you most likely take?

---

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [January 16, 2019, 5:34pm UTC](https://forum.kirupa.com/t/a-card-game-based-on-programming/639282/5 "2019-01-16T17:34:33Z")

</div>

I like the idea of it, but if we’re being honest, I’ll probably never get around to doing it.

I’d prefer _not_ to have to mess with AR. I think to have to use a phone would be a distraction and a complication. I think you could limit the distraction aspect if you make it an endgame component where, for example, if you have a situation where the game is over and you need it to verify the winner (the phone not being constantly used throughout the game) that could be ok. It doesn’t help with the complication part, though.

If you move away from standard playing cards, I think that gives you more freedom and opportunity to avoid having to depend on something like AR. Then you can do things like enforce what kind of combinations are possible through the design of the cards themselves - an example maybe being laying cards out in a way where shapes along their edges have to match in able to work.

Beyond that, I still think there’s a lot yet to be done just to figure out how something like this can be made to be fun. Maybe, just MAYBE, if something comes to mind that does seem compelling enough, that could be enough encouragement to move forward with something like this. And I imagine it could be prototyped pretty easily without AR assuming AR was felt necessary for it to work.

---

<div class="post-metadata">

**Author:** ![mungojam](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mungojam/32/8953_2.png) [@mungojam](https://forum.kirupa.com/u/mungojam)\
**Post date:** [January 26, 2019, 3:45pm UTC](https://forum.kirupa.com/t/a-card-game-based-on-programming/639282/6 "2019-01-26T15:45:27Z")

</div>

I played a very imperative programming style board game once where each of you is a robot which you give sequences of instructions to:

I think it might have been [this Robot Ricochet game](https://www.amazon.co.uk/Z-Man-Games-ZMG-71330-Ricochet/dp/B00FNKYPYY)

I guess you are thinking of something with more programming concepts though

A couple more I’ve just found that look interesting:

> **[ROBOT WARS Coding Board Game - Learn and Play with Computer Programming. Geeky STEM Toy and Gift for Boys and Girls ages 7 years and up. No Prior Coding Skills Required: Card Board Learning: Amazon.co.uk: Toys & Games](https://www.amazon.co.uk/ROBOT-WARS-Coding-Board-Game/dp/B0738HD8TH)**
>
> £18.49

> **[Thinkfun Code No.1 - On the Brink - Programming Game: Amazon.co.uk: Toys & Games](https://www.amazon.co.uk/Thinkfun-Code-No-1-Brink-Programming/dp/B076ZVM9K8)**
