Computer Science Canada Hex AI |
Author: | klopyrev [ Thu Feb 22, 2007 11:32 pm ] |
Post subject: | Hex AI |
Here is my AI for the game Hex that I had to make for my final project in Grade 12 Computer Science. I have spent a lot of time on it, so it is pretty good. I still fail to beat it every time. To run it, compile every file first, especially Bee.java, because it doesn't compile itself. Run HexGame to run the game. Then, when you are running the game, press Game Type, select either Human vs Computer or Computer vs Computer. When it says enter the name of the next player, you have to give it the name of the class that contains an AI. Basically, you have to type "Bee", because that is the name of my player. You could even write your own AI for it if you have time and then enter "Your AI Name" to see it battle mine. That's what we did in our class. Unfortunately, no one in my class could even come close to beating Bee ![]() Konstantin Lopyrev |
Author: | bugzpodder [ Fri Feb 23, 2007 10:46 am ] |
Post subject: | RE:Hex AI |
do a search on google. you'll find many AIs flying around. |
Author: | klopyrev [ Fri Feb 23, 2007 11:39 am ] |
Post subject: | Re: Hex AI |
The main ones are Hexy and QueenBee. My AI is based on QueenBee. I actually wanted to implement the algorithm that Hexy uses, but I didn't know the Max Flow algorithm back then, so I used Queen Bee's algorithm. KL |