So I was playing around with some thing today, and was attempting to make a punnet square calc. but for the life of me, I can't figure out the math behind it, i only took up to high school trig tho lol.
I can do them on paper easily, but when it comes to make the computer understand what I want, I'm at a lost.