[Sugar-devel] Porting sugar activity to sugarizer
Abhishek Tanwar
abhishektanwar084 at gmail.com
Thu Mar 12 08:37:45 EDT 2020
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.
Thank You
On Thu, Mar 12, 2020 at 9:07 AM James Cameron <quozl at laptop.org> wrote:
> The board is not random in the beginning.
>
> When creating a game to play Implode starts with an empty board state
> and injects transformations to confuse that state. The type of
> transformations are the exact inverse of those the player requests in
> a winning move sequence.
>
> The code is in boardgen.py
>
> The Maze game has a reversible algorithm too.
>
> On Thu, Mar 12, 2020 at 08:55:49AM +0530, Abhishek Tanwar wrote:
> > I am porting Implode activity to sugarizer . I read the code a few times
> and I
> > partially understood its working . One thing that I am not able to
> understand
> > is the logic that the game always have an answer despite of random board
> > formation in the beginning .
> > Is it that the initial state of board is designed according to last
> state and
> > the game is played in a reverse order such that there exist no state in
> which
> > there is no next move to make?
> >
>
> > _______________________________________________
> > Sugar-devel mailing list
> > Sugar-devel at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> --
> James Cameron
> http://quozl.netrek.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200312/168c4514/attachment.htm>
More information about the Sugar-devel
mailing list