Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: A simple game AI that learns

by Blue (Hermit)
on Jan 15, 2001 at 18:47 UTC ( [id://51919]=note: print w/replies, xml ) Need Help??


in reply to A simple game AI that learns

Very cool, I'm looking forward to playing around with this.

Since you mentioned tic-tac-toe, I've worked along these same set of assumptions (know what's a legal move, know if & how the game ends) for both (very simple) neural nets and also genetic algorithms. Both a lot of fun, you may want to look into them. I must admit that the math for the NN is very slow going when it's not beyond me, but GAs were fun and cool.

Two twists on it that I tried I think may of helped, or at least kept me more interested. For games like tic-tac-toe where board orientation is unimportant I developed a routine to orient the board before evaluating such that multiple boards that were just rotations or flips of each other went through the same game logic.

In addition, I started with many randomly weighted oppenents, and then let them battle each other. This slowly gave a "better opponent" as you mention, which I think allowed a quicker training. It was needful for the GAs, but just plain fun for the NNs.

There are a lot or resources out there on the web. My old bookmark list (that had my favs) got wiped a while ago so I can't rememebr specific ones, but just search around.

Have fun.

=Blue
...you might be eaten by a grue...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://51919]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2025-06-24 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.