Re: TIB: Artificial Intelligence
[Prev][Next][Index][Thread]
Re: TIB: Artificial Intelligence
Hey, can you explain a little more in detail exactly how you got the computer
to learn how you play so it gets better? I've been toying with the idea of
making an AI for my chess game for a while now, and that would be a big help.
Granted, chess is just a _little_ more complicated than tic-tac-toe, but...
anything would help. Thanks.
Eric Tollefson
Cmdr ERT01@aol.com
In a message dated 2/1/2000 3:57:06 PM Eastern Standard Time,
KeysDezes@aol.com writes:
<< Subj: Re: TIB: Artificial Intelligence
Date: 2/1/2000 3:57:06 PM Eastern Standard Time
From: KeysDezes@aol.com
Sender: owner-ti-basic@lists.ticalc.org
Reply-to: ti-basic@lists.ticalc.org
To: ti-basic@lists.ticalc.org
In a message dated 1/31/00 11:56:00 PM Eastern Standard Time,
Jared173@aol.com writes:
> I made a tic tac toe game for the PC not too long ago like that. I use an
> array with nine numbers that all start at 0. The computer moves into the
> box
> that has the highest value. When I move, the boxes around where I go are
> increased in value by one point so that the computer is more likely to
move
> there next turn. If it senses that I have 2 next to each other, the 3rd
box
>
> gets jacked up in value so it will block a winning move from me. You can
> make it so that it is more offensive or defensive, like making the values
> around itself higher in value is offensive and making the values around
my
> moves higher is defensive.
> As for learning from its mistakes, I set it up to play 1,000 games
against
> itself..which it did, in about 3 seconds. Now I can't beat it any more...
>
> -Jared C.
> tivault.com
> isignupnow.com
Well, the problem with that is it isn't learning how to play, it's learning
how you play. If you play enough games, it would work though. The way I do
it has to do with backtracking to determine why it lost. Quite neat. The
other advantage to the way I do it is that you can port it to all sorts of
different games in just a few minutes. The underlying logic to the computer
player remains the same.
----------------------- Headers --------------------------------
Return-Path: <owner-ti-basic-outgoing@towerguard.unix.edu.sollentuna.se>
Received: from rly-yb01.mx.aol.com (rly-yb01.mail.aol.com [172.18.146.1])
by air-yb03.mail.aol.com (v67_b1.21) with ESMTP; Tue, 01 Feb 2000 15:57:06
-0500
Received: from towerguard.unix.edu.sollentuna.se
(towerguard.edu.sollentuna.se [195.67.128.23]) by rly-yb01.mx.aol.com
(v67_b1.21) with ESMTP; Tue, 01 Feb 2000 15:56:43 -0500
Received: by towerguard.unix.edu.sollentuna.se (Postfix)
id C6A50A4017; Tue, 01 Feb 2000 21:56:31 +0100 (CET)
Delivered-To: ti-basic-outgoing@towerguard.unix.edu.sollentuna.se
Received: by towerguard.unix.edu.sollentuna.se (Postfix, from userid 507)
id 6F87AA4020; Tue, 01 Feb 2000 21:56:31 +0100 (CET)
Delivered-To: ti-basic@lists.ticalc.org
From: KeysDezes@aol.com
Message-ID: <50.1039626.25c8a279@aol.com>
Date: Tue, 1 Feb 2000 15:56:25 EST
Subject: Re: TIB: Artificial Intelligence
To: ti-basic@lists.ticalc.org
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: AOL 5.0 for Windows sub 45
Sender: owner-ti-basic@lists.ticalc.org
Precedence: list
Reply-To: ti-basic@lists.ticalc.org
Errors-To: ti-basic-errors@lists.ticalc.org
>>