This probably sounds like a school assignment but I guarantee you, none of my teachers know enough about computers to ask me for such a thing :-(


Being high-school students, everyone in my class (myself included) gets bored easily when teachers ramble about french poetry and whatnot. We started playing four-in-a-row (I even created my own version which has three colours ... but not many people are smart enough to play it, let alone beat me ;-)), but everyone wants to practice at home (yeah, they're mental).

I was asked by some friends to code a game which they could use to play at home so now I want to learn some A.I. techniques. Can anyone tell me where to start reading? Anyone with experience in coding computer opponents for games? I've never done this and wouldn't know where to start.

I know this is gonna rock, and maybe show some of my classmates that programming is more cool than what we learned about integers and document.writeln() in JavaScript last year ... I nearly cried when the teacher raped the art of programming like that!

Thanks in advance,
CBAS


In reply to AI programming by $CBAS

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.