This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Cards.txt | |
| #rainbow, 10, 28, rainbow.png | |
| #space, 5, 20, space.png | |
| robots = {} | |
| file = open('cards.txt', 'r') | |
| # #print(file.read().splitlines()) | |
| for line in file.read().splitlines(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| game_store_name = 'Blockbuster' | |
| games = [] | |
| def add_game(name, age, category): | |
| game = { | |
| 'name': name, | |
| 'age': age, | |
| 'category': category | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/python | |
| import turtle | |
| import random | |
| print("Let's play Battleships!") | |
| columns = 8 | |
| rows = 8 | |
| line_length = 300 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/python3 | |
| import turtle | |
| import time | |
| circles = [] | |
| circles_per_row = 7 | |
| player_number = 1 | |
| player_colour = 'red' | |
| game_won = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/python3 | |
| import turtle | |
| import time | |
| circles = [] | |
| circles_per_row = 7 | |
| game_won = False | |
| player_number = 1 | |
| player_colour = 'red' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PLAY [all] ********************************************************************* | |
| TASK [Gathering Facts] ********************************************************* | |
| ok: [ceprvm] | |
| TASK [Include OS-specific variables.] ****************************************** | |
| ok: [ceprvm] | |
| TASK [Define config_dir.] ****************************************************** | |
| skipping: [ceprvm] |