Author Topic: AI Tutorial  (Read 7549 times)

0 Members and 1 Guest are viewing this topic.

Offline nitacku

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 300
  • Rating: +30/-1
  • ni-ta-ku ^_^
    • View Profile
AI Tutorial
« on: September 16, 2008, 06:35:25 pm »
Currently I am in the process of writing an AI tutorial.
The page is available on TI|BD from here: http://tibasicdev.wikidot.com/artificial-intelligence
As you can see, there is still quite a bit to be completed.

If you have any suggestions or ideas please share them. I know there are ideas that I'm leaving out, but I can't think of them, that's where I can use your help. The objective is to create a detailed tutorial on AI, not just strictly for calcs, but for any programming language. Although this is going to be a universal tutorial, I am going to have to leave out advanced methods such as fuzzy logic and neural networks since I am not knowledgeable enough in those methods to write about them. However, if you feel that you can write about such advanced topics I encourage you to participate in the tutorial and share your knowledge. Thank you all.

-nitacku

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: AI Tutorial
« Reply #1 on: September 16, 2008, 10:59:16 pm »
Looks promising, it might come handy in the future. I hope you include lot of TI-BASIC code examples :)

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
Re: AI Tutorial
« Reply #2 on: September 21, 2008, 10:01:41 pm »
Cant wait to see what others have to conclude on the thoughts of AI with the z80 world XD

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: AI Tutorial
« Reply #3 on: September 22, 2008, 01:49:33 am »
wow some people are really discouraging...

http://tibasicdev.wikidot.com/forum/t-86033/artificial-intelligence#post-265198

Afterward people wonder why our rules discourage flaming and destructive comments. That makes me want to edit that rule so that we can flame flamers in the members only spam forum and open a "TI Community hall of shame" topic there

Offline James Kanjo

  • LV0 Newcomer (Next: 5)
  • Posts: 1
  • Rating: +0/-0
    • View Profile
Re: AI Tutorial
« Reply #4 on: September 22, 2008, 03:35:31 am »
wow some people are really discouraging...

Just so you know, those comments were directed at the creator of the page, basickevin, not nitacku.

Afterward people wonder why our rules discourage flaming and destructive comments. That makes me want to edit that rule so that we can flame flamers in the members only spam forum and open a "TI Community hall of shame" topic there

Hehehe! Yes, I agree! We should disregard flaming rules to punish the flamers! LOL, Hall of Shame
Cheers ~ James Kanjo


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: AI Tutorial
« Reply #5 on: September 22, 2008, 03:53:25 am »
Oh ok, as said on BASIC Developper I didn't noticed the page wasn't started by nitacku. I assumed it did because the way nitacku worded his post in this topic it seemed like so and he talked a lot about a possible AI tutorial on #omnimaga IRC since he joined Omnimaga staff in 2007.

I am unsure if your second quote awnser is meant to be sarcastic or not though. Mine is a lil bit sarcastic for sure though, but yeah you get the point, it would be some kind of punishment against flamers. Of course we do not need to flame back though, the main point is making the flames public and make sure the username/user info is made public. The only thing is that it would probably not work well with people who intentionally flame others though because they would get more attention, which is what they want most of the time and doesn't deserve. But if Patrick Davidson and Epic Programming Studio did it on their site why wouldn't we? PatrickD has a list of flame e-mails he got between '98 and '04 and on EPS when their site got hacked or cracked, the tradition was to post the hacker personal information on the board, including ISP, IP address, e-mail, instant messenging info, home address, phone number, real name and more.
« Last Edit: September 22, 2008, 04:01:24 am by DJ Omnimaga »

Offline skuller972

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 335
  • Rating: +11/-4
  • BEAST MODE
    • View Profile
Re: AI Tutorial
« Reply #6 on: May 27, 2009, 09:03:42 pm »
another old topic... i saw once on ticalc a program and the description said "an AI that LEARNS!!!"
how do you make an AI that learns? this subject really intrigues me
Then again, maybe not...
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/bc7bf8e12353f09e.png" alt="NerdTests.com says I'm a Cool Non-Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

Offline nitacku

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 300
  • Rating: +30/-1
  • ni-ta-ku ^_^
    • View Profile
Re: AI Tutorial
« Reply #7 on: May 27, 2009, 10:50:20 pm »
Ah, I should actually try to complete this tutorial.
It's just that I'm working full-time right now, and will be doing so for the rest of the summer...

To create a learning AI, you need to develop a method for the AI to record the results of its decisions and alter its decisions based on the results (heh, this is sort of confusing sounding). For example, if the AI was playing checkers and moved its piece next to the opponents piece and the opponent jumped the AI's piece, a learning AI would analyze the result of its decision and conclude that it should avoid moving its piece next to an opponents piece. (this is easier said than done) As for actually coding this, well.... idk how to do it yet. I've been thinking about it, but so far the method alludes me.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: AI Tutorial
« Reply #8 on: May 27, 2009, 11:20:00 pm »
I want to add that a learning AI in TI-basic seems very unlikely (but anything is possible) and usually the best option is to hardcode AI to suit the task at hand. (it also has the advantage that the user doesn't have to play the AI many times for it to get good)

Offline skuller972

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 335
  • Rating: +11/-4
  • BEAST MODE
    • View Profile
Re: AI Tutorial
« Reply #9 on: May 28, 2009, 06:31:49 am »
yeah if it were basic you'd need a huge subprogram for it.
Then again, maybe not...
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/bc7bf8e12353f09e.png" alt="NerdTests.com says I'm a Cool Non-Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: AI Tutorial
« Reply #10 on: May 28, 2009, 10:19:14 am »
I was able to get a rudimentary learning AI working on my calc using a neural network (google it, its cool).  All it did was output the keycode that I pressed.  But the cool thing was that I hadn't programed it to do that at all, it had learned based on trial and error.  (granted it took a bloody long time, and it didn't learn very well)

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: AI Tutorial
« Reply #11 on: May 28, 2009, 12:46:41 pm »
Cool tutorial nitacku.

I think TI|BD needs more topics about very advanced techinques.(eg dual-layer mapping in graph menu) And finish the tutorial for xLib. A new for CelticIII would be good also.
Someday I may try a AI for a simple game... (not done by you yet)
Also if were possible a contest of AI in some game. :P
Hobbing in calculator projects.

Offline skuller972

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 335
  • Rating: +11/-4
  • BEAST MODE
    • View Profile
Re: AI Tutorial
« Reply #12 on: May 28, 2009, 04:35:55 pm »
i feel like making a sloppy graphicked tictactoe game and making an ai
Then again, maybe not...
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/bc7bf8e12353f09e.png" alt="NerdTests.com says I'm a Cool Non-Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

Offline Ti-newb

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 180
  • Rating: +3/-0
    • View Profile
Re: AI Tutorial
« Reply #13 on: May 31, 2009, 11:21:55 am »
AI's sound very.. difficult to create.