<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, May 14, 2015 at 2:26 PM, Alberto Abate <span dir="ltr"><<a href="mailto:alberto.abate@gmail.com" target="_blank">alberto.abate@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Consigli e suggerimenti sono ben accetti.<br></div><div>Come vedete ho implementato solo alcune delle regole ;-))</div></div></blockquote><div><br></div><div>L'ho eseguito un po' di volte e ad un certo punto:</div><div><br></div><div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div><font face="monospace, monospace">nr_mossa: 9 cur_p: X cur_l: 2:INTERMEDIATE state: WIN</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><font face="monospace, monospace">X X O</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><font face="monospace, monospace">O X X</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><font face="monospace, monospace">X O O</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><font face="monospace, monospace">--------------------</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><font face="monospace, monospace">Traceback (most recent call last):</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><font face="monospace, monospace"> File "tt.py", line 130, in <module></font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><font face="monospace, monospace"> x,y,state = best_move(board,dim_b,cur_p,cur_nr,blank)</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><font face="monospace, monospace"> File "tt.py", line 105, in best_move</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><font face="monospace, monospace"> return -1,-1,state # non ci sono celle libere quindi imposto coordinate per pareggio</font></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><font face="monospace, monospace">UnboundLocalError: local variable 'state' referenced before assignment </font></div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div><br></div><div>Ciao.<br>Marco.</div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><a href="http://beri.it/" target="_blank">http://beri.it/</a> - Un blog</div><div><a href="http://beri.it/i-miei-libri/" target="_blank">http://beri.it/i-miei-libri/</a> - Qualche libro</div><div><span style="font-size:small"><a href="http://beri.it/articoli/" target="_blank">http://beri.it/articoli/</a> - Qualche articolo</span></div></div></div></div>
</div></div>