Re: How do you copy an array?
- From: "Geoffrey Summerhayes" <sumrnot@xxxxxxxxxxx>
- Date: 31 Aug 2006 10:43:55 -0700
Dan Bensen wrote:
Kim Minh Kaplan wrote:
First, the *child* node does not need the previous moves to do its job,
I don't understand. The effect of a move depends on the parent grid
just before that move, not the original grid several plies earlier. And
the score is determined from the entire child grid after adding the
latest move, isn't it? How can you compute the score without knowing
the entire, completely updated grid? How do you pass the current state
of the game to deeper plies without creating new grids?
;; pseudocode
(loop for x in (available-moves grid)
do (progn
(setf (aref grid x) player-token)
(do-alpha-beta grid (1+ ply) (next-player player-token))
(setf (aref grid x) #\Space)))
--
Geoff
.
- Follow-Ups:
- Re: How do you copy an array?
- From: Dan Bensen
- Re: How do you copy an array?
- References:
- How do you copy an array?
- From: Dan Bensen
- Re: How do you copy an array?
- From: Raffael Cavallaro
- Re: How do you copy an array?
- From: Dan Bensen
- Re: How do you copy an array?
- From: Barry Margolin
- Re: How do you copy an array?
- From: Dan Bensen
- Re: How do you copy an array?
- From: Raffael Cavallaro
- Re: How do you copy an array?
- From: Dan Bensen
- Re: How do you copy an array?
- From: Kim Minh Kaplan
- Re: How do you copy an array?
- From: Dan Bensen
- Re: How do you copy an array?
- From: Kim Minh Kaplan
- Re: How do you copy an array?
- From: Dan Bensen
- How do you copy an array?
- Prev by Date: Re: Lets talk about GUI and sound libraries
- Next by Date: Allegro on linux
- Previous by thread: Re: How do you copy an array?
- Next by thread: Re: How do you copy an array?
- Index(es):