I’m currently working on a project using Processing where I’m implementing an Othello game with a genetic algorithm AI. The project consists of multiple files including OthelloGame.pde, AIPlayer.pde, Button.pde, GraphWindow.pde, Matrix.pde, and NeuralNet.pde. One of the features I’m trying to implement is a separate window for visualizing the neural network used by the AI.
However, I’m encountering a persistent issue where the neural network visualization is rendered in the main game window instead of the separate window designated for it.
[Here’s my code]so you can try to check what causes the problem yourself.
Full Disclosure: GPT 4o was used during the creation process
I suggest you work on a simple minimal example (without the neural network) to isolate this issue that can render (or attempt to) in two different windows; once you understand that you can then integrate additional code.
Note: If you’re posting to multiple sites, please link between the crossposts so we can see what help you’ve already received. A simple message like “By the way, I’m also posting this on Stack Overflow. Here is a link to that post…” is enough. See Asking Questions — Are you posting anywhere else?.