User Tools

Site Tools


public:problem_solving_challenge_2017:main

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:problem_solving_challenge_2017:main [2017/10/15 08:03] davidthuepublic:problem_solving_challenge_2017:main [2024/04/29 13:33] (current) – external edit 127.0.0.1
Line 20: Line 20:
  
 In **Challenge Mode**, your ship will fly through a different stream of asteroids, but you won't be able to see what happens and you won't be able to edit your code during a run. This mimics what it might be like to actually send an AI probe into space; you can't be beside it to watch what happens first-hand, but you can get some reports back from its sensors. The asteroid field in Challenge Mode has a fixed length (24 Challenge Zones). Your progress will be shown on-screen, and your high scores will be saved when your ship meets its end or when you successfully complete a run. In **Challenge Mode**, your ship will fly through a different stream of asteroids, but you won't be able to see what happens and you won't be able to edit your code during a run. This mimics what it might be like to actually send an AI probe into space; you can't be beside it to watch what happens first-hand, but you can get some reports back from its sensors. The asteroid field in Challenge Mode has a fixed length (24 Challenge Zones). Your progress will be shown on-screen, and your high scores will be saved when your ship meets its end or when you successfully complete a run.
 +
 +To switch between modes, click the toggle button above the Playing Field and then reset the game.
  
 ====The Code Window==== ====The Code Window====
Line 25: Line 27:
 The Code Window is your main interface to the game. While it supports the functions of a basic text editor, we **highly** recommend that you __write your code in an external editor__ (Notepad++ for Windows and Coda for Mac are both pretty good) and paste the code in for execution. To do so, use the Paste button at the bottom right of the Code Window. //Browsers can crash at any moment, so make sure your code is safe on the outside!// The Code Window is your main interface to the game. While it supports the functions of a basic text editor, we **highly** recommend that you __write your code in an external editor__ (Notepad++ for Windows and Coda for Mac are both pretty good) and paste the code in for execution. To do so, use the Paste button at the bottom right of the Code Window. //Browsers can crash at any moment, so make sure your code is safe on the outside!//
  
-**Your code will be executed once every second.** If you Pause the game, time will flow forward until the next second, your code will execute once, and then time will stop. Pressing Play at that point will cause time to resume.+**Your code will be executed once every second.** If you Pause the game, time will flow forward until the next second, your code will execute once, and then time will stop. Pressing Play at that point will cause time to resume. __You do **not** need to do anything special to make your code run again and again - it will happen automatically!__
  
  
Line 70: Line 72:
     command.shootLast = true;     command.shootLast = true;
  
-**Your code will be executed once every second.**+**Your code will be __automatically__ executed once every second.**
  
 =====Basic Syntax===== =====Basic Syntax=====
Line 138: Line 140:
     }     }
  
-If, on the other hand, you would rather **avoid** this sort of thing, please try to avoid writing infinite loops in your code. If you happen to write one anyway, just refresh the page to start over. (//You'll still have a copy of your code in an external editor, right?//) +If, on the other hand, you would rather **avoid** this sort of thing, please try to avoid writing infinite loops in your code. If you happen to write one anyway, just refresh the page to start over. (//You'll still have a copy of your code in an external editor, right?//...and don't forget: your code will be run __automatically__ once every second - you don't need to write your own infinite loop!
 =====Grading===== =====Grading=====
  
/var/www/cadia.ru.is/wiki/data/attic/public/problem_solving_challenge_2017/main.1508054627.txt.gz · Last modified: 2024/04/29 13:32 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki