April 20th-23rd 2012 :: 10 Year Anniversary! :: Theme: Tiny World

Back to Browse Entries

"The best" CCG

by cantorfew - 48 Hour Compo Entry


I've now put up a web version. There are no new features (actually some features like custom names and saving were removed to make it work) but the code was changed quite a bit to make it work online so this should probably be considered a post-competition version.

Hopefully everyperson can at least try it now.

A collectible card game named "the best".

Requires Python 2.x (may also work in Python 3), downloadable from www.python.org

Download the ZIP, unzip the contents somewhere and run "python menu.py" or alternatively (on Windows) double click on run.bat

You can manually delete the file savegame to delete your save file.

The entire game plays on the command line. There was no time for the planned GUI. So the .zip file is actually 3 times smaller than the screenshot :)


I'm looking into putting up a web based server side version this weekend. For the moment, here is an alternative mirror if Fileden goes down:


(except this one is not a direct link).

And finally here's another attempt to explain what a card does.

By example (from the screenshot):
The card

3-4 1:opp discard

swaps positions 3 and 4. If the current order is BFDEAC (as in the screenshot), it becomes BFDAEC (A and E are swap). After the swap, if position 1 matches the goal (it does not since F isn't B), your opponent discards a card (if it doesn't match as in this case, there is no second effect).

The card

a-b x1:effect1 x2:effect2 x3:effect3 ...

swaps positions a and b. After the swap, if position x1 matches the goal, it triggers effect1. After the swap, if position x2 matches the goal, it triggers effect2. And so on.


Downloads and Links




azmaeve says ...
Apr 23, 2012 @ 2:44pm

I don't think I got the rules of your card game.
Also I don't get the relation with "Tiny World"

angrygeometry says ...
Apr 23, 2012 @ 4:46pm

when i ran "run.bat", it opened and closed straight away. will try reinstall python and will come back to this!

cantorfew says ...
Apr 23, 2012 @ 5:23pm

@azmaeve: If you are back to read this, could you elaborate a bit on what confused you in the rules? I agree that a lot was taken out so the theme is no longer obvious (and some of it is little rather than tiny).

@angrygeometry: Thanks for trying. If it still doesn't work, could you run "python.exe menu.py" from command line and see what it does (or change the properties of "run.bat" so it doesn't close the window after execution)? I can give you more specific instructions if you are willing to help me test.

Misaka42 says ...
Apr 23, 2012 @ 6:06pm

Does not fit the theme. Plus, learn how to use py2exe to ship python apps to windows.

cadin says ...
Apr 23, 2012 @ 6:12pm

You'll get more ratings if you can figure out a way to package your game so it's easier to run.

cakemonitor says ...
Apr 23, 2012 @ 8:48pm

This game is quite frustrating - I had positions 4 and 0 matching the goal, but turn after turn all my cards involved swapping either 4 or 0 with something else. I can't see any king of strategy to use to give myself better odds over this game - I seemed to be just randomly swapping cards around.

artefon says ...
Apr 23, 2012 @ 10:20pm

It is a creative card game, but it's difficult to relate it to theme. Besides that is hard to visualize opponents play without a gui. A simple GUI (even curses) would have made the game much more enjoyable. I see some future though.

Thanks for the game!

armornick says ...
Apr 24, 2012 @ 4:46am

I think the rules aren't explained that well. 'card 1-4' doesn't tell much about what it does and such. You also didn't really incorporate the theme.

SusanTheCat says ...
Apr 24, 2012 @ 11:14pm

Was unable to download. Got a "Could not open user data."

Yay for card games!


Cosmologicon says ...
Apr 25, 2012 @ 12:34am

This game felt really complicated for the interface. As it happens I got lucky and managed to win each of my first two matches in 2 plays, but if I had to strategize I think the setup would have gotten in the way. If you're looking for specific suggestions, I would get remove any mention of unimplemented features, not let you enter names for the cards, and get rid of the compound actions like "3-4 1:opp discard". I'm not even sure what the 1 means in that case.

On the third match it crashed with this Traceback:

Traceback (most recent call last):
File "menu.py", line 160, in <module>
odeck=[gendoublecard() for i in xrange(DECKSIZE)]
NameError: name 'gendoublecard' is not defined

PS: if you want to join a game competition where everyone uses python so everyone will be able to run your game, consider PyWeek! :)

NAMKCOR says ...
Apr 25, 2012 @ 5:40pm

I was unable to run it, and from the screenshot, it looks very arcane. I think simple graphics would have benefited this game greatly.

Also, I believe python can be packed into the deliverable exe, look into that for future projects.

Maybe look into PyGame?

Topaz says ...
Apr 27, 2012 @ 1:59am

Wouldn't run, sorry. But it looks good from the screenshot :D

gritfish says ...
Apr 27, 2012 @ 1:37pm

I could understand the game as far as it was a text-based card game, and the goal, but once I was in the game I was lost.

cantorfew says ...
Apr 28, 2012 @ 9:12am

Thank you everyone for your feedback and comments. I like to read them, both positive and negative.

For packaging, it seems that py2exe needs a Windows computer to start with (not impossible, but its hard for me to find one). However, given that it is text-based and I came across this:


I might look into hosting it server side (as a post-competition entry) if its not too difficult. (I might as well attempt to use the lack of a GUI to my advantage. :) )

Alternatively, I might also consider a post-competition PyGame entry. But in that case, I'm pretty sure I'll have problem distributing though.

@artefon: I think you are spot on and some of the confusion about the rules could be cleared up with a GUI. The current visual disconnect is making this game hard to grasp.

@SusanTheCat: That's odd. Maybe Fileden is being unreliable. I've uploaded it elsewhere just in case (the original entry).

@Cosmologicon: Having only swaps (or permutations) was the original design but then I ran into the problem cakemonitor stated above. Basically, you couldn't gain a significant advantage in that case. The secondary effects were added to give you a more permanent advantage.

That's quite some luck for winning in two rounds twice! I guess nobody got to level 3 before. Thanks for reporting the bug (its a function renaming error)!

I've done PyWeek before under a different pseudonym (and really like your work there, by the way). Unfortunately, I can't afford a weekend worth of time anymore, much less a week.

@cakemonitor: Some of the things you can do is to increase your hand size (by drawing), decrease your opponent's hand size (by making them discard) and increasing compromise. Also, originally I intended

@NAMKCOR: You guessed correctly and PyGame is what I intended to use for the GUI. I think even a GUI with no proper graphics would have helped. (Also see my comment about py2exe above.)

Jhelle says ...
Apr 28, 2012 @ 12:01pm

Couldn't get it to run :( windows xp here

ExciteMike says ...
Apr 28, 2012 @ 12:42pm

I actually kind of wish this was a pdf of cards to print out instead of a program to run :)

Naouak says ...
Apr 28, 2012 @ 1:37pm

Can't run it. Maybe I'm missing something but either by launching menu.py or run.bat, it close almost instantly.
There was an error when launching menu.py but didn't had time to read it as it closes directly.

Alexandre says ...
Apr 30, 2012 @ 6:13pm

Played the web version.
Interesting, though the interface is a bit austere, so it's a little difficult to follow the game, and creating a deck a bit tedious.
I like that you can customize your deck and collect cards!

aquasheep says ...
May 2, 2012 @ 11:47pm

Cool game. I like the gameplay, although it took a while to figure out that each card was switching both players' positions. The interface could be a little cleaner (i.e. more space between goal and hand and make it clearer when you're discarding. I threw away my winning card :(

Overall cool stuff. I think I want to play this with real cards.

asfdfdfd says ...
May 9, 2012 @ 9:02pm

Hard to understand

You must sign in to comment.

[cache: storing page]