1 of 10

Code written by: Aarifah Amidu, Zakiya Ali, Victoria Huang

2 of 10

DICTIONARY

https://swapi.dev/api/people holds the api for the starwars game which in turn holds the dictionary that python used

3 of 10

DICTIONARY

If dictionary name is spelt wrong, it will ask you to try again instead of create an error

4 of 10

RANDOM CHARACTER FOR PLAYERS

Random.randint gave us a random character out of the total 82 each time code was ran

Chose random character for you

Chose random character for opponent

5 of 10

GAMEPLAY

Watch as python runs the code!

6 of 10

SCORING SYSTEM

The player has 3 lives. Python will run game recording the points of each round until player runs out of lives.

7 of 10

LIVES

The player has 3 lives. Python will run game recording the points of each round until player runs out of lives.

8 of 10

FILE

Each time python runs it saves each player and their score on a text file

9 of 10

Record High Scores

The game remembers the highest score and tells you at beginning of game

10 of 10

Thank you for watching