[Kde-games-devel] Re: KPoker and the card images
Inge Wallin
inge at lysator.liu.se
Thu Aug 26 23:05:43 CEST 2004
On Thu, 26 Aug 2004, Andreas Beckermann wrote:
> On Thursday 26 August 2004 22:41, Inge Wallin wrote:
> > > Some games use Ace, King, ..., 5, 6, 7 only. Others use all cards, down
> > > to 2. Therefore it makes sense to name them in a way that you can start
> > > at one and count up to what you need.
> >
> > Well, here I don't agree. It makes sense to have bigger cards have higher
> > numbers. If I compare two cards using the < operator (for instance), then
> > I bloody well want a six to be less than a seven.
>
> This is not about how applications store the card numbers, but how the card
> images are stored.
> Noone prevents you from placing cards with a small value to a lower position
> in your array.
That's what I did.
> However it absolutely makes sense to name the image files like this. Imagine
> they would have been names
> 1.png ... 4.png = 7 of foobar
> 5.png ... 8.png = 8 of foobar
> 9.png ... 12.png = 9 of foobar
> [...]
> by some application coder who uses card 7...Ace only.
> Now some other application coder need 2..6, too so how should he name the
> files? -3.png to 0.png for 6 of foobar?
This time I think it is you that misunderstood me. I have never advocated
anything like this, and what you write is perfectly right.
> I think it's only a matter of taste anyway, but I _guess_ that were the
> reasons for this decision. If you want a definite answer you should try to
> find the one who made it :-)
I don't think I will bother. :-) I will just accept things as they are.
-Inge
More information about the kde-games-devel
mailing list