How does on AI work?

Non-platform specific questions.

Re: How does on AI work?

Postby Thanx » Wed Feb 06, 2008 10:07 pm

k I'll sort my questions then ... :D
No, actually I don't have any at the moment... at the moment... but the next moment - who knows? :)
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: How does on AI work?

Postby Bee-Ant » Thu Feb 07, 2008 4:49 am

Another struct example in C++
Code: Select all
#include "stdio.h"
struct
{
    int x,y,z;
}bee;
int main()
{
    printf("Enter x value : ");
    scanf("%i",&bee.x);
    printf("\nEnter y value : ");
    scanf("%i",&bee.y);
    bee.z=bee.x+bee.y;
    printf("\nx + y : %i",&bee.z);
    getch();
}
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: How does on AI work?

Postby Thanx » Thu Feb 07, 2008 5:06 pm

thanks again... :oops: :D
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: How does on AI work?

Postby Bee-Ant » Fri Feb 08, 2008 10:09 am

NP :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: How does on AI work?

Postby Thanx » Sun Feb 10, 2008 11:09 am

k, I'm running into problems... I desided that I'm going to find adjent territories through the arrays (see Fuzzy's tut: http://game-editor.com/forum/viewtopic.php?f=5&t=5061 ) But I'm having problems reaching the properties of the struct... I guess we have an array of them (territory) board[8][5] and I don't know how to reach one's property (e.g. defence)
I know, using some pointer ( . -> & or something, but that doesn't seem to work...)
Could you post a code example?
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: How does on AI work?

Postby Thanx » Sun Feb 10, 2008 7:57 pm

k, figured it out!
e.g.
board[2][3].defence = 2;
:oops: :P
:lol: :mrgreen:
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron