Genetic Algorithm Syntax

I currently have a program that takes two integers as parameters. It either returns a win or a loss (the program is a game). Would it be possible to use statistics or a genertic algorithm to come up with the best two integers to pass to the program (by running the program thousands of times)? I am not sure how I would choose random numbers since they should be picked in a semi intelligent fashion. Any insight and proposed ideas are welcome.

Jon

[461 byte] By [jon.dmml@gmail.coma] at [2007-10-3 1:27:21]
# 1

If you want a GA or anything at all similar (simulated annealing, etc) to be applicable you need a multivalued co-domain. Otherwise it's just picking entirely random numbers with no guidance, so you may as well just pick uniformly distributed numbers until you find a pair which gives you a win.

YAT_Archivista at 2007-7-14 18:24:56 > top of Java-index,Other Topics,Algorithms...