51
Python
7y

Few weeks ago I was having a few beers and messing around with a Minimax AI that could be used for different games as long as you fed it possible moves and win/loose-conditions. Could be used for like Tic Tac Toe on a 5x5 field, connect four etc.

I hadn't got it to work yet as I tried to implement alpha-beta pruning to optimize it. When I was playing against it I thought "Damn you're stupid, why would you even make that move" but still finished the game.

Before I knew it I had fucking lost. It outplayed me like 6 moves before I even knew what was happening.

And that's one of the top coolest feelings I've had as a developer, got destroyed by my own program.

Comments
  • 2
    Awesome. :D
    What game did you play?
  • 4
    @theCalcaholic Thanks! :) I think it was Tic Tac Toe-ish on a 5x5 board with 4 in a row to win (messed around with different settings).
    It had the opportunity to kill my strategy but did other things instead. Just thought it was a fool but in the end I was the fool.
  • 2
    Always fun when the software beats you with logic you don't understand.
Add Comment