Author |
Message |
bugzpodder
|
Posted: Mon Jun 02, 2003 10:06 pm Post subject: (No subject) |
|
|
a good AI should deal with a lot of situations, at least i would think so.
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Tue Jun 03, 2003 10:10 am Post subject: (No subject) |
|
|
yeah... and you could determine your relative starting position and execute different strategies if you'd like 8)
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
bugzpodder
|
Posted: Tue Jun 03, 2003 8:12 pm Post subject: (No subject) |
|
|
i am trying to write the snake engine and i am stuck on some problems. i want to have easy access of everyone's AI (ie store the pointers in an array) but stupid turing cant handle this. so in the end, i will probably put the whole engine into the SampleAI. but for now I'll leave it be. anyone have other bright ideas?
|
|
|
|
|
|
Catalyst
|
Posted: Tue Jun 03, 2003 8:34 pm Post subject: (No subject) |
|
|
what type of pointers are you talking about (to store in the array)
cpp or turing?
|
|
|
|
|
|
bugzpodder
|
Posted: Tue Jun 03, 2003 8:56 pm Post subject: (No subject) |
|
|
turing. everyone is going to have seperate classes and i am trying to find a way to combine everything.
here is the *NEW* samplesnake code, which i added one line of label 0:
and the engine, which allows you to test your own AI. its not finalized.
the simpliest way to use it is to not modify the name of the SampleSnakeAI and just modify the Think() procedure in it.
code: |
look at later posts for updated code
|
code: |
look at later posts for updated code
|
|
|
|
|
|
|
Catalyst
|
Posted: Tue Jun 03, 2003 9:19 pm Post subject: (No subject) |
|
|
i like the ; and ()
u could write a generic class
and have the users classes overide the base (like virtual functions)
class using deferred
or
you could have the functions and procedure outside the program
and brought in using parameters to the class
|
|
|
|
|
|
bugzpodder
|
|
|
|
|
Catalyst
|
Posted: Tue Jun 03, 2003 9:30 pm Post subject: (No subject) |
|
|
ur sample ai stops after a few turns
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Catalyst
|
Posted: Tue Jun 03, 2003 9:33 pm Post subject: (No subject) |
|
|
nvr mind, didnt know they turned on themselves
|
|
|
|
|
|
Tony
|
Posted: Tue Jun 03, 2003 9:38 pm Post subject: (No subject) |
|
|
thats because his sample AI moves randomly... so it crashes into itself and stops
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
bugzpodder
|
Posted: Tue Jun 03, 2003 9:52 pm Post subject: (No subject) |
|
|
well i hurriedly made these things so everyone could start making their AI and use the program to test it out. let me know when you've made something.
|
|
|
|
|
|
Catalyst
|
Posted: Tue Jun 03, 2003 11:35 pm Post subject: (No subject) |
|
|
edit: see below
|
|
|
|
|
|
bugzpodder
|
Posted: Wed Jun 04, 2003 7:43 am Post subject: (No subject) |
|
|
dead link.
|
|
|
|
|
|
Catalyst
|
Posted: Wed Jun 04, 2003 2:52 pm Post subject: (No subject) |
|
|
two ai's i tried out
new algo:
old algo:
|
|
|
|
|
|
bugzpodder
|
Posted: Wed Jun 04, 2003 5:07 pm Post subject: (No subject) |
|
|
Catalyst wrote: i like the ; and ()
u could write a generic class
and have the users classes overide the base (like virtual functions)
class using deferred
or
you could have the functions and procedure outside the program
and brought in using parameters to the class
I basically want something that without modifying my code, I could specify which AIs to use. or if thats not possible then i need to at least have the pointers/functions stored in an array so i could loop through them in my code. i am not interested in having seperate calls to each AI using their name. anyone?
|
|
|
|
|
|
|