DEV Community

Discussion on: Who's looking for open source contributors? (August 28 edition)

Collapse
 
dsaw profile image
Devesh Sawant • Edited

Hello!

I made a tiny Python library called perfect_game_player that helps predict the best move you can play in games. I made use of minimax and its variants. You can make your own AI by implementing the Node class and calling the minimax function.
Currently, I have tried it on Tic tac toe and connect 4.

I just made it because I loved the idea of a game playing AI! :)
There are a ton of things left to do. Initially I wanted to make a graphical client XO game and visual minimax stepper but spent a lot of time getting the games to run.

Here's the project, would love it if you could take a look! Contributions and even feedback is welcome.

Cheers!