From: Thomas Leitner Date: 2004-12-15T09:47:16+09:00 Subject: Re: [QUIZ] Learning Tic-Tac-Toe (#11) On Tue, 14 Dec 2004 09:04:53 +0900 Brian Schr�der wrote: | If I understand your code correctly, you choose with highest | probability the worst move ;). You should either use moves.pop or sort | in reverse order. | | Note that I used exactly the opposite evaluation function: -1000 for | loss and 100 for win, because it is impossible to win against a decent | player and I wanted to avoid losses and tend to play draws. Though I | don't know if this really makes a difference compared with -1 0 1 or | other numbers. I hope my choice does not lead to weird psychoanalysis | of me ;) | | Best Regards, | | Brian | | -- | Brian Schr�der | http://www.brian-schroeder.de/ | Thanks for your help! However, after I changed the code to use moves.pop, nothing changed. I.e. the learning AI player was as bad as was before. Thanks for helping, Thomas -- |\ Thomas Leitner -- thomas [underscore] leitner [at] gmx [dot] at |> |/ "Life is what happens to you while you're busy making other plans"