Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Cyber Battle Game
Game elements
Main Game Loop
Robot moves
Final game

Instruction

Great! We also wrote a laser_shoot_right() function which is very similar to the function you wrote in a previous exercise. Let's move on to the vertical shoot!

Exercise

Write a laser_shoot_down(board, robot, lives_left) function that is similar to the laser_shoot_right() or laser_shoot_left() functions, but presents a laser beam shooting down.

Example 1: no hit

- - - -
- Av- -
- * - -
- * B<-

Example 2: robot B hit

- - Av-
- - * -
- - B<-
- - * -