From: Shark8 <OneWingedShark@gmail.com>
Subject: Re: dynamically create tasks
Date: Fri, 10 Oct 2014 20:20:35 -0600
Date: 2014-10-10T20:20:35-06:00 [thread overview]
Message-ID: <Zt0_v.350490$y33.265979@fx28.iad> (raw)
In-Reply-To: <47e42c27-69ba-44fc-861f-c230f5ac04f4@googlegroups.com>
On 10/10/2014 7:49 PM, compguy45@gmail.com wrote:
> If you have one task body and would like to create 5 of these
> tasks since there is one task body there will only be one
> task created plus main task....how would you create 20 tasks
> with same body?
>
> is there way to do this?
Yes; it's essentially what I do in my solution to the No-Connection
puzzle on Rosetta-code.
( See: http://rosettacode.org/wiki/Solve_the_no_connection_puzzle#Ada )
The Idea is that the tasks are fed a list of possible numbers and a
state (usu. inherited from prior tasks which create them dynamically) --
if the given state cannot be a solution, its task simply ends otherwise
there are two options (1) the state is a complete board [that is, the
puzzle is solved], OR (2) the task creates a task for every possible
number which can be in the next position.
next prev parent reply other threads:[~2014-10-11 2:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-11 1:49 dynamically create tasks compguy45
2014-10-11 2:20 ` Shark8 [this message]
2014-10-11 5:53 ` Niklas Holsti
2014-10-11 13:02 ` compguy45
2014-10-11 14:51 ` Dmitry A. Kazakov
2014-10-11 16:34 ` compguy45
2014-10-11 17:29 ` Ludovic Brenta
2014-10-11 18:52 ` Brad Moore
2014-10-11 6:01 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox