Posts by Emily • 23 points
2 posts
-
1
votes2
answers82
viewsQ: I don’t know how to calculate the distance
Chromosome chromosome = new Chromosome(); int[] gene = new int[6]; gene[0] = 0; gene[1] = (int) (1 + (Math.random() * 3)); gene[2] = (int) (4 + (Math.random() * 4)); gene[3] = (int) (8 +…
-
0
votes0
answers117
viewsQ: I am using c++ with the openGL library
I’m using c++ with the openGL library, I’m having a little trouble creating a method. I need to create some buildings randomly, but to not create one inside the other I need to compare the 4 points…