I took another crack at it trying various methods. This time I tried it from left to right instead of right to left.
this is what I came up with:
int den = 1; int da = 1; int db = 1;...
Type: Posts; User: DaleZ
I took another crack at it trying various methods. This time I tried it from left to right instead of right to left.
this is what I came up with:
int den = 1; int da = 1; int db = 1;...
I'm working on creating a punnette square.
output array is a 2d 128 row by 14 (7 pairs) columns ( just for 1 side of the square).
source is a 1d 7 column array.
I have it hard coded atm but...
Thanks for the tip on instance.
I solved it by putting "Main" into a separate class and called "program" from it there.
This allowed me to access all the other methods.
I'm getting
"Error 1 An object reference is required for the non-static field, method, or property 'JWGenetics.Genetics.program()' e:\visual studio 2010\Projects\JWGenetics.cs 50 13 JW Genetics"
...
I'm getting the control cannot fall through to another case error and I'm not seeing how to fix it. What am I missing?
public void agouti_color_steel()
{
switch...
Thanks.
That does what I want.
I'm doing a punnett square and putting the output into a list.
I want to compare the output to the list and if exists; update the count in the list.
I'm new to C# and don't fully understand...
I've looked at permutations. I'm not sure if that would do what I want. Total valid combinations is 128.
This is how I'm doing it now to get the desired results.
int parent[14]
int...
I'm writing a genetics program working w/7 pairs of genes.
int parent[14] // comprised of 7 pairs of genes. pairs are 0-1,2-3,4-5,6-7,8-9,10-11,12-13
int parentdata[128][7] // all...