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
| from dialogue_menus import * | |
| class Rooms: | |
| def __init__(self, name, description, directions, items, monsters): | |
| self.name = name | |
| self.directions = description | |
| self.items = items | |
| self.description = directions | |
| self.monsters = monsters |
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
| class Rooms: | |
| def __init__(self): | |
| self.name | |
| self.description | |
| self.directions | |
| self.items | |
| self.monsters | |
| rooms ={ | |
| 1 : { |
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
| class Character(): | |
| def __init__(self, strength=10, dexterity=10, vitality=10, intelligence=10): | |
| self.strength = strength | |
| self.dexterity = dexterity | |
| self.vitality = vitality | |
| self.intelligence = intelligence | |
| class Mage(Character): | |
| def __init__(self, **kwargs): | |
| super().__init__(self, **kwargs) |
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
| class Character(): | |
| def __init__(self, level, strength=10, dexterity=10, intelligence=10, vitality=10): | |
| self.strength = strength | |
| self.dexterity = dexterity | |
| self.intelligence = intelligence | |
| self.vitality = vitality | |
| class Mage(Character): |
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
| class Character(): | |
| def __init__(self, level, *args): | |
| self.attributes = [self.strength, self.dexterity, self.intelligence, self.vitality] | |
| self.hp = (1 + level) * self.vitality | |
| self.level = level | |
| self.elemental = ['Fire', 'Water', 'Lightning'] | |
| self.status = ['knocked down', 'stunned', 'frozen', 'electrified', 'burning', 'normal'] | |
| class Mage(Character): | |
| def __init__(self, level, mana, *args): |
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
| import random | |
| marked_spots = [] | |
| def drawBoard(board): | |
| print(' ' + str(board[0][0]) + ' | ' + str(board[0][1]) + ' | ' + str(board[0][2])) | |
| print('-----------') | |
| print(' ' + str(board[1][0]) + ' | ' + str(board[1][1]) + ' | ' + str(board[1][2])) | |
| print('-----------') |
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
| import random | |
| ai_marker = 'X' | |
| matrix = [ | |
| ['7', '8', '9'], | |
| ['4', '5', '6'], | |
| ['1', '2', '3'] | |
| ] | |
| marked_spots = [] |
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
| import random | |
| ai_marker = 'X' | |
| matrix = [ | |
| ['7', '8', '9'], | |
| ['4', '5', '6'], | |
| ['1', '2', '3'] | |
| ] |
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
| def markers(): | |
| while True: | |
| marker = input("Select Marker 'X' or 'O' ").upper() | |
| if marker != 'X' or marker != 'O': | |
| continue | |
| break | |
| if marker == 'X': | |
| ai_marker = 'O' | |
| else: | |
| ai_marker = 'X' |
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
| from __future__ import print_function | |
| choices = [] | |
| for x in range (0, 9): | |
| choices.append(str(x + 1)) | |
| print(choices) | |
| playerOneTurn = True | |
| winner = False |