OKay.
I am stuck, and need help. I'm making a site where you raise and shoe 'virtual rabbits.'
I'm trying to figure out the color genetics script.
Let's give this scenario:
I breed a black colored rabbit, his genetics are: aaB_C_D_E_
So, I breed the black with a Chocolate genetics: aabb_C_D_E_
The black gene, in this case, is the dominant gene (keep in mind both these have 'no' other genetics with them. Just for scenario reasons)
So, let's say they breed, and 5 rabbits are born. The bulk of those rabbits are Black, but they carry the chocolate gene with them, and have a 1 in 3 chance of being chocolate.
I was trying to write it using 'if' statements, but got stuck
Help?