<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      this is the part where you have to think ;).<br>
      <br>
      In order to win, it's quite easy, if you start you have a way to
      always win. i don't remember the exact formula but you have to let
      your opponent having 3 * n + 2 bars. For example, 2, 5, 8...
      Because, in this case, you just need to take all the remaining
      bars except the last one.<br>
      <br>
      But in our case, you can't let the computer do this if it starts
      (well, if it plays second at last level, it could be doable to let
      the computer win if the child makes one mistake).<br>
      <br>
      Johnny<br>
      <br>
      On 08/14/16 13:22, Ütkarsh Tiwari wrote:<br>
    </div>
    <blockquote
cite="mid:CAFRUKoeUjb_-tQKnUZWmVk6OanssBd0wNxjs6MPKDusht9u4gg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,  
        <div>    Thanks Mr. Coudoin. Luckily I got my MacOSX
          installation problem solved :)  </div>
        <div>@Johnny ~ Is there any specific algorithm which I should
          look into in order to program Tux to be artificially
          intelligent ? </div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Utkarsh  </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sun, Aug 14, 2016 at 3:03 PM, Bruno
          Coudoin <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:bruno.coudoin@gcompris.net" target="_blank">bruno.coudoin@gcompris.net</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex"><span
              class=""><br>
              <br>
              Le 13/08/2016 20:28, Ütkarsh Tiwari a écrit :<br>
              > Hi Jhonny,<br>
              >                  I tried making some progress<br>
              > - <a moz-do-not-send="true"
href="https://gist.github.com/iamutkarshtiwari/e50b50ff3d22d0d9a9d5dca476ed580b"
                rel="noreferrer" target="_blank">https://gist.github.com/<wbr>iamutkarshtiwari/<wbr>e50b50ff3d22d0d9a9d5dca476ed58<wbr>0b</a><br>
              > but seems to a new issue.<br>
              ><br>
              <br>
            </span>Hi,<br>
            <br>
            I have never tried to get Box2D running on MacOSX. You can
            just disable<br>
            it with  'cmake -DQML_BOX2D_MODULE=disable ..' or find a way
            to make it run.<br>
            <span class="HOEnZb"><font color="#888888"><br>
                Bruno.<br>
                <br>
                <br>
              </font></span></blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>
          Ütkarsh Tiwari<br>
          <br>
          <br>
          <br>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>