Page 280 - AI Ver 1.0 Class 9
P. 280

Step 12  Type the desired code and click on the RUN button.






                         MAP      DUNGEONS OF KITHGARD  Sign Up  GAME MENU                        HINTS
                   Avoid the spikes.
                   Collect the gem.                     METHOD
                  GOALS: INCOMPLETE                    hero.moveDown()  1 # Move towards the gem.  PROGRAMMING LANGUAGE: Python
                                                       hero.moveLeft()
                                                       hero.moveRight()  2 # Don't touch the spikes!
                                                       hero.moveUp()  3 # Type your code below and click Run when you're done.
                                                                      4
                                                                      5 hero.moveRight()
                                                                      6





                                                                           RUN
                        THARIN












         Step 13  Once you have completed the level, the DONE button appears.

         Step 14  Click on the DONE button. The next screen will show that you are the winner.






                         MAP      DUNGEONS OF KITHGARD  Sign Up  GAME MENU                     HINTS
                   Avoid the spikes.
                   Collect the gem.                     METHOD
                                                                                      PROGRAMMING LANGUAGE: Python
                 GOALS: SUCCESS!                       hero.moveDown()    1  # Move towards the gem.
                                                       hero.moveLeft()
                                                       hero.moveRight()    2  # Don't touch the spikes!
                                                       hero.moveUp()    3  # Type your code below and click Run when you're done.
                                                                        4
                                                                        5  hero.moveRight( )
                    Success! You accomplished your goals.               6  hero.moveDown( )
                    Click the Done button to finish the level.            hero.moveRight( )
                                                                        9
                                                                        10
                                                                        11

                                                                                           DONE
                       THARIN














                  278   Touchpad Artificial Intelligence-IX
   275   276   277   278   279   280   281   282   283   284   285