Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I need to implement a really simple card game. As the game logic is written in Python I chose to stick with some Python framework even if my goal is to develop a Windows only version. I also don't like to work with .NET so I ruled out Iron Python + WPF.

I tried to write a simple prototype with Pyglet but soon discovered that I will have to do a lot of stuff by hand: things like detecting mouseover events and finding which card was clicked on and moving it, etc... very low level and unnecessary for my use-case.

So I thought it might be easier to do things in PyQt. Do you reckon it would be feasible to use PyQt for implementing a simple card game? Will I have higher level events I can work with?

share|improve this question
1  
What are the specific things you need? I would think once you figure out your needs, you can look in the PyQt docs to see if they are there. If your specific question is "Does PyQt have higher level events?", then you need to define what you mean by "higher level events", and your question likely belongs elsewhere (e.g. Stack Overflow) because that's not a game-specific question. In any case, please revise your question by using the edit link (or delete if you feel you can't rephrase it better); in its current form, it will be closed. – Ricket Oct 11 '12 at 0:13
It depends. Do you need complex GUI elements such as combo box or things like that? Because the first thing it comes to mind when i read your question is PyGame. You have an higher level event system than piglet, it's actually made to be use for games, it has great documentation. GUI implementing can be tricky with pygame however. I was able to made an implementation of PGU GUI within a pygame game if you are interested. – nathan Oct 11 '12 at 7:15

closed as not constructive by michael.bartnett, Byte56, Josh Petrie, Trevor Powell, Jonathan Hobbs Nov 13 '12 at 2:15

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

1 Answer

I know Ren'Py is a visual novel engine, but you should definitely look into its card game framework: http://www.renpy.org/wiki/renpy/Cardgame

It should handle all the boilerplate code you'd have to write, leaving you to implement only the game logic. Just to state how easy it is, they claim that "klondike solitaire takes 225 lines of code".

Note: The Ren'Py card game framework is free only for games that can be redistributed for free, otherwise it requires a commercial license.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.