Skip to content
Kyle Tranfaglia
All projects

Software · AI & ML

Pynacle Games

Six hand-coded, cross-platform Python games with AI opponents and solvers: alpha-beta minimax, A* search, and annealing-tuned heuristics.

Role
Designer & developer
Team
Solo
Timeline
Sep 2024 – May 2025
Context
Independent research
hand-coded games
6
games with AI opponents or solvers
4
average 2048 AI score after tuning
20K+
The Pynacle Games website home page, with a pixel-font welcome banner, Explore Games and Download Now buttons, and featured game cards

Overview

Pynacle Games is a collection of six downloadable games: Chess, Connect Four, 2048, 15-puzzle, Snake, and Tic-Tac-Toe. Each one pairs a playable Qt interface (PyQt5, or PySide6 for Chess) with an AI that explores how solvable the game is and what optimal play looks like.

Approach

  • Hand-coded every game and its solver in Python, with no game engine.
  • Connect Four’s Hard and Master bots use alpha-beta minimax with memoized positions, center-first move ordering, and search depth that grows as the game goes on (up to 6 plies).
  • The 15-puzzle solves any position with A* and a Manhattan-distance heuristic.
  • 2048’s AI scores moves on empty cells, monotonicity, merge potential, and smoothness. I tuned its weights with a grid search and then simulated annealing, raising its average score from about 15,000 to over 20,000 points per game.
  • Measured the Connect Four bots by playing them against each other and logging the results, which guided the changes behind the stronger Hard and Master levels.
  • Tic-Tac-Toe has rule-based bots at three levels; Chess is two-player, built on python-chess.
  • Studied how UI and GUI design choices affect the player’s experience, and kept each interface simple and consistent across games.
  • Packaged the games as standalone Windows and Linux executables, and built a website where people can download them and read documentation on the gameplay and the AI behind it.

Outcome

All six games are live at pynaclegames.org, each with its own documentation page.

All six games: Chess, Connect Four, 2048, the 15-puzzle, Snake, and Tic-Tac-Toe
The website's Games page, with a card, description, and download button for each game
The website's Downloads page, with installation steps and system requirements
The website's About page, telling the story behind the project