Shalmanese
Platinum Member
Okay, I know the basic theory behind GA's but I havent dealt much in the nitty gritty.
For our final assignment, we are to create a program that can play a game similar to the Settlers of Catan (L=Java Version]http://settlers.cs.northwestern.edu/[/L]). Now I was thinking that I could use a GA to implement this by defining the value of serveral things a variables (eg, value of wood, sheep, corner squares etc) and then get the GA to figure out just what those variables should be.
Now, I need help in the implementation. For example, I noticed that there were several different strategies in playing the game which all required widely different vaule sets. Would it be better to have 5 or 6 seperate GA's running (ie they play against each other but no cross breeding) so I could get a number of sperate strategies?
Also, the game is limited to 4 people playing at a time so will this limit how big the population size will be?
Most improtantly of all: how should the breeding be done?
I was thinking, if I had a population of 16 GA's, I could ge the most succesful 4 from each round, breed 8 children from them and then add another 4 random people to make sure there is sufficient variation.
so 4 from older generation, 8 children from the older generation and 4 newbies.
What would be the best way to generate children?
I was just thinking the average from two of them plus maybe a little randomness.
Also, The game is a little variable in who wins so would it be better if it was a best 2 out of 3 or best 3 out of 5?
I don't know how long each game will take, I haven't coded the game yet but I have access to a P3-933 laptop and possibly a P4 1.8(SDRAM only but memory bandwidth shouldnt be a problem right?) if needed. Would this be enough to get a decent GA?
Thanks!
For our final assignment, we are to create a program that can play a game similar to the Settlers of Catan (L=Java Version]http://settlers.cs.northwestern.edu/[/L]). Now I was thinking that I could use a GA to implement this by defining the value of serveral things a variables (eg, value of wood, sheep, corner squares etc) and then get the GA to figure out just what those variables should be.
Now, I need help in the implementation. For example, I noticed that there were several different strategies in playing the game which all required widely different vaule sets. Would it be better to have 5 or 6 seperate GA's running (ie they play against each other but no cross breeding) so I could get a number of sperate strategies?
Also, the game is limited to 4 people playing at a time so will this limit how big the population size will be?
Most improtantly of all: how should the breeding be done?
I was thinking, if I had a population of 16 GA's, I could ge the most succesful 4 from each round, breed 8 children from them and then add another 4 random people to make sure there is sufficient variation.
so 4 from older generation, 8 children from the older generation and 4 newbies.
What would be the best way to generate children?
I was just thinking the average from two of them plus maybe a little randomness.
Also, The game is a little variable in who wins so would it be better if it was a best 2 out of 3 or best 3 out of 5?
I don't know how long each game will take, I haven't coded the game yet but I have access to a P3-933 laptop and possibly a P4 1.8(SDRAM only but memory bandwidth shouldnt be a problem right?) if needed. Would this be enough to get a decent GA?
Thanks!