SOFTWARE / ENGINEERING & PROGRAMMING

Curiosity,
made concrete.

C++ environments, Python learning agents and machine-learning experiments. These projects are in progress; the details below separate the current implementation from ongoing work.

Recorded training trace: episode steps, reward and exploration.
Recorded training trace: episode steps, reward and exploration.
C++23PythonCMakepybind11Q-learning

01 / REINFORCEMENT LEARNING

In progress

Gridworld / maze reinforcement learning

A C++23 GridWorld environment with procedural maze generation and A* pathfinding, exposed to Python through pybind11 for Q-learning experiments.

Implementation decisions

  • Keep environment, maze generation and A* in a reusable C++ core; use Python for learning, evaluation and visualization.
  • Build the C++ core and Python extension as separate CMake targets, linked through pybind11.
  • Use grid-indexed vectors for A* predecessor and score tracking, with a fixed-size array of four neighbors.
  • Use epsilon-greedy action selection and a Q-table in the current learning agent.

Available results

  • The repository includes a recorded plot of steps per episode, episode reward and epsilon decay.

Limitations

  • Quantitative Q-learning versus A* comparisons and broader automated testing remain development work.
  • The recorded training trace is not a completed convergence or performance benchmark.
Recorded seed-12 training fitness; the chosen generation-28 checkpoint is marked.
Recorded seed-12 training fitness; the chosen generation-28 checkpoint is marked.
PythonPyTorchNeuroevolutionpytestGitHub ActionsMatplotlib

02 / NEUROEVOLUTION

In progress

Tic-Tac-Toe RL / neuroevolution

A PyTorch Tic-Tac-Toe agent trained by evolving its network weights with selection, crossover and Gaussian mutation.

Implementation decisions

  • Encode each of the nine cells with three one-hot features, giving 27 inputs.
  • Use two 64-unit hidden layers and nine action logits; mask occupied cells before sampling a legal move.
  • Evolve weights with parent selection, uniform crossover, Gaussian mutation, mutation annealing and unchanged elites.
  • Select a checkpoint on a validation opponent pool, then freeze it for a separate final-test pool.

Technical challenge

An evaluator bug counted the wrong model’s wins when the champion changed argument position.

Solution

Correct the win attribution, verify that wins plus draws plus losses match the game count, and add regression coverage.

Testing evidence

  • 37 pytest tests passed in the linked GitHub Actions run on November 6, 2026. Coverage includes game rules, masking, genetic operators, checkpoint saving and evaluator accounting. View evidence

Recorded final-test comparison

Frozen generation-28 checkpoint. Each model played 600 games against three frozen, untrained opponents (seeds 2000, 2001 and 2002), balanced between starting positions.

Recorded final-test comparison
ModelFitnessWins / draws / losses
Checkpoint 280.6750370 / 70 / 160
Untrained baseline0.4842242 / 97 / 261

Fitness gives half-credit for draws. These are committed experiment results from a limited opponent pool; they do not establish optimal play.

Read recorded results

Limitations

  • Training uses one fixed untrained opponent per run; validation and final testing each use only three untrained neural opponents.
  • Training seed progression and dependency cleanup remain development work. Human play and REINFORCE fine-tuning are future work.

GET IN TOUCH

Let’s build
your next thing.

Find me as Nindq on Discord, or send me an email.

DISCORDnindq
EMAILnindqq@gmail.com
Email me

HAVE SOMETHING IN MIND?

A game, a system,
or a new conversation.

For Roblox commissions, send the scope, references, budget and timeline.

Prepare a commission brief