AI project

This is a discussion on AI project within the C++ Programming forums, part of the General Programming Boards category; I need to make an AI program implementing permenant memory (file i/o) for my AP Comp Sci class. Does anyone ...

  1. #1
    Unregistered
    Guest

    AI project

    I need to make an AI program implementing permenant memory (file i/o) for my AP Comp Sci class. Does anyone have any ideas that a beginning programmer might be able to actually write?

  2. #2
    Registered User DeadArchDown's Avatar
    Join Date
    Apr 2002
    Posts
    28
    Shine on you crazy diamond
    -------------------
    "Exception"

  3. #3
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Originally posted by DeadArchDown
    Shine on you crazy diamond
    lol!!

    Unregistered, what code have you written so far? What part of the assignment don't you understand?

    Basically you would define the states that your AI could choose from. You would have initial states, but of course since it will be a AI that learns you'll want to dynamically allocate the size of the states ( since you said you're a beginner then go with arrays instead of linked-lists ). Then write an algorithm that runs at the program's initializing that reads in the states, actions, etc., dynamically creates the arrays based on the number of states, actions, etc.. Then as your AI "learns" you would create your new array to hold the original + added data, and copy your old array into the new one, then delete the first array. At preset intervals ( probably after something is "learned" ) save the new array data to a file over the old data.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 09:05 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  3. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM
  4. Game Design Topic #1 - AI Behavior
    By TechWins in forum Game Programming
    Replies: 13
    Last Post: 10-11-2002, 10:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21