:: test genetics [nobr]

<<set $nextButton to "Back", $nextLink to "Main">>
<<set _seed = 0>>

All slave array slaves MUST be present in genePool or else there is a malfunction.
<br>Name ID Origin
<br><br>

genePool:
<<for _i to 0; _i < $genePool.length; _i++>>
	<br>
	$genePool[_i].slaveName $genePool[_i].ID $genePool[_i].origin
<</for>>

<br><br>

slaves:
<<for _i to 0; _i < $slaves.length; _i++>>
	<br>
	<<for _k to 0; _k < $genePool.length; _k++>>
		<<if $slaves[_i].ID == $genePool[_k].ID>>
			<<set _seed = 1>>
			<<break>>
		<</if>>
	<</for>>
	<<if _seed == 1>>
		@@color:green;$slaves[_i].slaveName $slaves[_i].ID $slaves[_i].origin@@
	<<else>>
		@@color:red;$slaves[_i].slaveName $slaves[_i].ID $slaves[_i].origin@@
	<</if>>
<</for>>