• Stars
    star
    1
  • Language
    Python
  • Created almost 3 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This project was my homework assignment at the CmpE150 (Introduction to Computing) course at Bogazici University. I coded the implementation of an ASCII Atari-like game where a spaceship navigates and shoots asteroids using three parameters: x as the length of the asteroid cluster, y as the width of the asteroid cluster, and g, as the current distance to the asteroid cluster. These parameters are given by the user at the beginning of the game. The game is played with three actions: left to go one space left, right to go one space right, and fire to shoot a laser to destroy an asteroid in front of the spaceship. There is also an exit action to exit the game. These actions are also taken from the user at each step of the game. My goal is to follow the game board, print the current position after each move of the user, and determine whether the user wins at the end.