View Single Post
  #4   Spotlight this post!  
Unread 18-07-2004, 15:33
Mike Ciance Mike Ciance is offline
Registered User
FRC #0025 (Raider Robotix)
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2002
Location: North Brunswick, NJ
Posts: 693
Mike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant future
Send a message via AIM to Mike Ciance
Re: [FVG]: High-level design

Quote:
Originally Posted by mtrawls
(Oh, and keep in mind that how you have it, the AI for robot 4 gets to decide his move after everyone else has made thiers, meaning he always has more information than the others.)
>get player 1 input
>getdata robot 2 stats
>calculate AI 2
>getdata robot 3 stats
>calculate AI 3
>getdata robot 4 stats
>calculate AI 4
>getdata robot 1 stats
>move robot 1
>move robot 2
>move robot 3
>move robot 4
>getscore
>display score

this way all decisiosn have been made before any robots move, and AI also takes robot stats into account
Reply With Quote