Page 293 - Artificial Intellegence_v2.0_Class_9
P. 293

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
                     GOALS: SUCCESS!                       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( )
                       Success! You accomplished your goals.                6  hero.moveDown( )
                       Click the Done button to finish the level.             hero.moveRight( )
                                                                            9
                                                                            10
                                                                            11


                                                                                               DONE
                           THARIN













                                                                                   Introduction to Python  291
   288   289   290   291   292   293   294   295   296   297   298