Space Invaders Test

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Space Invaders Test

1. Draw a 10 by 10 table in the space below. Turn this table into a battle ships
grid map by inserting letters and numbers into the 1st Row and 1st Column of
the grid.

2. Use the above grid to draw/shade in the following coordinates of five ships

A. 7 blocks long ship Location Coordinates:________________


B. 5 blocks long ship Location Coordinates:________________
C. 3 blocks long ship Location Coordinates:________________
D. 2 blocks long ship Location Coordinates:________________
E. 1 block long ship Location Coordinates:________________

3. List 5 coordinates to hit your opponent’s (person you are versing) ships.

Opponents ship locations


A B C D E F
1
2
3
4
5
6






4. What are the three parts of the Grok Learning Space Invaders home screen




5. What controls are found under the program.blokly screen


6. What controls are found under the submission screen

8. Write down the steps/block coding to insert a spaceship in space

9. Write down the steps/block coding to insert a spaceship 100units from


the top and 200 units from the left
10. Write down the steps/block coding to insert 2 rows of spaceships as shown
below
11. Circle the part of this code that is responsible for making the spaceships
move from the left side of the screen to the right

In which order do these functions need to be called to make a grid of spaceships?

1. createGrid()
2. createSpaceship(left, top)
1. createSpaceship(left, top)
2. createRow(left, top)
3. createGrid()createGrid()

1. createRow(left, top)
2. createSpaceship(left, top)

1. createRow(left, top)
2. createGrid()
3. createSpaceship(left, top)

10. What will this code do (A,B, C,D) ?

A. Move spaceships in a horizontal line from right to left


B. Nothing. Spaceships stay where they are.
C. Make spaceships jump around randomly
D. Move spaceships in a diagonal line from top-left to bottom-right.

You might also like