Score Four

Score Four is a 3D strategy game where two players take turns placing their pieces in a 4x4x4 grid. The objective is to be the first player to form four distinct "four-in-a-row" lines. A line can be vertical, horizontal, or diagonal across rows, columns, and layers. Pieces must always be placed on the bottommost available spot in each column. In my algorithm, a minimax search is used to evaluate possible moves, optimizing for the best play by examining potential outcomes and using pruning techniques for performance.
[Click this paragraph to hide it]