This Java source code is published under AGPL v3 license.
It is inspired by Connect4 Game Solver by Pascal Pons.
The source files at src/main/java/dev/mzhao/connect4 can simply be copy-pasted into any project.
See src/test/java for example usage of the Solver class.
The test cases are directly from Solving Connect 4: How To Build A Perfect AI.