<div dir="ltr">I have been trying to understand the game but it is quite tough .If you could provide me with some logic,algorithm and references used ,it would be helpful to understand the code.<br>Thank You</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 12, 2020 at 9:07 AM James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The board is not random in the beginning.<br>
<br>
When creating a game to play Implode starts with an empty board state<br>
and injects transformations to confuse that state. The type of<br>
transformations are the exact inverse of those the player requests in<br>
a winning move sequence.<br>
<br>
The code is in boardgen.py<br>
<br>
The Maze game has a reversible algorithm too.<br>
<br>
On Thu, Mar 12, 2020 at 08:55:49AM +0530, Abhishek Tanwar wrote:<br>
> I am porting Implode activity to sugarizer . I read the code a few times and I<br>
> partially understood its working . One thing that I am not able to understand<br>
> is the logic that the game always have an answer despite of random board<br>
> formation in the beginning .<br>
> Is it that the initial state of board is designed according to last state and<br>
> the game is played in a reverse order such that there exist no state in which<br>
> there is no next move to make?<br>
> <br>
<br>
> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br>
<br>
-- <br>
James Cameron<br>
<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
</blockquote></div>