|
||||||
| Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hey I am writing a AI mind (Trying) that. Its a creature in a world that at each timestep get a state update taht tells it "how its doing" the creature mind which is made up of if statements is similar logic to the code
let say the state the world sends back is the current value of item A is : 0.754 the current value of item B is : 0.597 the current value of item C is : 0.813 the current value of item D is : 0.121 then the craetures code tells the creature what to do as defined by the following code if( item A > 0.6) do method A if( item B > 0.4) do method B if( item C > 0.7) do method C if( item D > 0.1) do method D which of the follwing will be executed.. would i be right in sayind method A cos its first in line? and if at the nest timestep if the value for A < 0.6 and the rest still hold or are even greater then it will be the if statement with method B |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| if statements | jack1234 | C and C++ | 3 | 11-05-2007 09:32 AM |
| Statements | clookid | PHP Tutorials | 1 | 01-11-2007 09:42 PM |
| Java:Tutorial - Flow Control | John | Java Tutorials | 0 | 12-09-2006 06:47 PM |
| Using conditional statements | Sionofdarkness | C and C++ | 1 | 07-21-2006 05:46 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |