POV-Ray : Newsgroups : povray.binaries.animations : game : Re: game Server Time
19 Jul 2024 04:12:53 EDT (-0400)
  Re: game  
From: Apache
Date: 19 Mar 2004 16:47:21
Message: <405b6a69@news.povray.org>
1.
Avoid depth-first search, go width-first.

2.
Keep track of every position encountered.
Every position has a pointer to the previous position in the game. (That
position also has it's own previous position etc etc). If the position has
been encountered before, ignore it and don't save it, because when the
program "met" it before, it had done less moves/steps to reach it.

3.
When a single step makes the game situation flip-invertable, you're halfway
and the rest of the game is like the beginning but than flipped-inverted
going backward.

4.
Throw away step sequences that are *absolutely* unnecessary. This is the
trickiest part  :-P


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.