Previous Topic Next topic Print topic


Executing in Go Mode

In Go mode, your program is automatically executed at the speed you select, and you can watch exactly what is happening in the program.

  1. To start Go mode, press G.

    The Go menu shown in the figure below appears at the bottom of the screen as execution begins. The program is currently executing at a speed of 5, the default setting.

    The Go Menu:


    The Go Menu

    The speed is displayed on the information line. You can set execution speed from either the Animate main menu or the Go menu. The range of speeds is from 0 to 9, with 0 the slowest speed. You can change this speed at any time during execution (except during an ACCEPT statement) by pressing a key between 0 and 9.

    Execution halts when an ACCEPT statement is reached. The system now pauses on the user screen after executing the ACCEPT statement on line 114. It is prompting you to enter data.

  2. Respond by typing N to indicate that you will be the one to start the game.

    The system continues animation in Go mode and pauses after the next ACCEPT, displaying the user screen and prompting again for data.

  3. Select square 9 by pressing 9 on your keyboard.

    This places an "X" in square 9 and resumes program execution in Go mode. Remember, you can press F2=view at any time to see the user screen.

  4. Experiment with pressing keys between 6 and 9 to make the program execute faster.

    Execution stops again when you are prompted to select another square. Notice that the system has placed a 0 in square 5.

  5. Press 8 to select the square and to resume execution.
  6. Press Escape.

    You can temporarily halt execution at any time except while the program is executing an ACCEPT statement. The message:

    Keyboard interrupt

    appears at the bottom of the screen. The cursor is positioned on the next executable statement.

Previous Topic Next topic Print topic