DylanCope / Evolving-Protozoa

An interactive environment where protozoa-like entities live, die, and have offspring whose behaviours and morphologies can change.
MIT License
231 stars 24 forks source link

Potential Bug in NNBrain #21

Open sdobberstein opened 7 months ago

sdobberstein commented 7 months ago

I'll start off by saying I just found this repo recently so still trying to wrap my head around it. So please excuse me if I'm misunderstanding something here. While looking at the NNBrain.java file it looked like lines 44 & 45 may have a small typo.

int chemicalY1 = chemicalSolution.toChemicalGridY(p.getPos().getX() - p.getRadius());
int chemicalY2 = chemicalSolution.toChemicalGridY(p.getPos().getX() + p.getRadius());

Should these instead be p.getPos().getY() instead of .getX()?