Posts

Showing posts from April, 2018

Perceptron Networks - 1: Did I Win?

Image
Recently I embarked upon a journey of making the IRC bot  play tic tac toe. The idea seemed interesting at first, but my mind being the cat it is, started wandering off. After a long tussle, a side quest and three espresso shots later  I finally had the cat under control, and the patience  to resume with the journey I had embarked upon. I had given the tic tac toe problem a try before too - as part of a school project. The result were not that great though, as I had to practically hand run all possible moves, and hand code the winning IF conditions. The computer was practically a god in it. It never lost, and the moment it realised it was about to lose, it would crash. The current endeavour was no different, except,  I could now utilise some of the more advanced technologies, compared to the ones which I had ( or was capable of, with my limited skill set ) some 12 years ago. if ((x[ 0 ] == -1 && x[ 1 ] == -1 || X[ 2 ] == - 1 && x[ 6 ] == - 1 ||