Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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...


In reply to Re: A simple game AI that learns by Blue
in thread A simple game AI that learns by Falkkin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found