Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly Language > Re: I pee in th...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 20 Topic 5075 of 5097
Post > Topic >>

Re: I pee in the open

by "Alexei A. Frounze" <alexfrunews@[EMAIL PROTECTED] > Jul 14, 2008 at 01:15 AM

On Jul 14, 12:57 am, "Rod Pemberton" <do_not_h...@[EMAIL PROTECTED]
>
wrote:
> "Chuck Crayne" <ccra...@[EMAIL PROTECTED]
> wrote in message
>
> news:20080713155223.7bdf4e52@[EMAIL PROTECTED]
>
> > For example, I have recently written an AI program for
> > playing the card game "Hearts". The game engine requires that such
> > programs be written in Python, which is a reasonable choice because
> > manipulating a deck of playing cards is essentially a list processing
> > task, which is one of Python's main strengths.
>
> Odd, I always thought of it as an integer array task, i.e.,
1,2,...52...,
> where each number maps to a specific card: suit, color, rank, etc.  The
> program then only needs to track cards by number.  When using integers,
the
> card characteristic (of most cards) can be found by modulo with the card
> number or by a few pre-computed lookup arrays.  This method would work
with
> nearly any language (asm, BASIC, C, etc.) since they all sup****t
integers
> and arrays.  But, many languages don't sup****t list processing that
well.
> I.e., would you rather use integers or strings in BASIC to process a
deck of
> cards?
>
> Rod Pemberton

It's possible to represent a stack of cards w/o an array or list.
After all, it's just the permutation number you need to establish the
order of the cards, which are all known. :)

Alex
 




 20 Posts in Topic:
Re: I pee in the open
"Alexei A. Frounze&q  2008-07-14 01:15:57 
Re: I pee in the open
"Rod Pemberton"  2008-07-14 05:39:09 
Re: I pee in the open
"Wolfgang Kern"  2008-07-14 13:18:06 
Re: I pee in the open
"H. Peter Anvin"  2008-07-14 13:03:34 
Re: I pee in the open
"Wolfgang Kern"  2008-07-14 22:50:38 
Re: I pee in the open
Phil Carmody <thefatph  2008-07-15 03:25:24 
Re: I pee in the open
"Rod Pemberton"  2008-07-15 05:01:34 
Re: I pee in the open
"Wolfgang Kern"  2008-07-15 11:43:35 
Re: I pee in the open
"Rod Pemberton"  2008-07-15 08:39:19 
Re: I pee in the open
"Wolfgang Kern"  2008-07-15 18:56:35 
Re: I pee in the open
"H. Peter Anvin"  2008-07-18 14:07:16 
Re: I pee in the open
"Rod Pemberton"  2008-07-19 04:13:29 
Re: I pee in the open
"H. Peter Anvin"  2008-07-19 19:18:14 
Re: I pee in the open
"Rod Pemberton"  2008-07-20 14:45:57 
Re: I pee in the open
Robert Redelmeier <red  2008-07-21 03:01:16 
Re: I pee in the open
"Rod Pemberton"  2008-07-21 04:18:57 
Re: I pee in the open
Robert Redelmeier <red  2008-07-22 23:14:35 
Re: I pee in the open
"Rod Pemberton"  2008-07-22 22:31:27 
Re: I pee in the open
Robert Redelmeier <red  2008-07-23 18:21:47 
Re: I pee in the open
"Rod Pemberton"  2008-07-23 18:41:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 20 4:14:58 CDT 2008.