Neural Network for playing tictactoe

Hello everybody.
Tell me what do you think about how this AI (I used ruby-fann) plays tic-tac-toe? Trying to get the right moves out of the chaos and absurdity of random moves is funny and paradoxical … but it works. :innocent:

Github. Thanks for any comments and remarks.