Simple Python 3 Connect Four game using the pygame
library
Entries for the AIs are qplayer.py
and dqn.py
they already contain all the necessary code for training and playing. You'll only need to uncomment the parts you're interested in.
First player is chosen randomly, clicking on one column will place a disc if possible. If win/draw occurs, a message is displayed, clicking again restarts the game
These actions can also be performed programmatically using the corresponding functions