generated from mwc/project_game
8.1.2024 Creating the Retro Game was a challenge at the beginning, but what helped was to create the Initial Plan of the game name, game description, core mechanics, and challenges. Dr. Proctor helped me with many of the issues to resolve. I was quite happy and empowered that I was able to write and resolve some code issues on my own. Several times I used Microsoft Copilot AI which helped me 1 issue, but final issues didn't work even while I was specific with the questions. Overall, I'm happy with the results of creating a Retro Game, but I would like to resolve Issues #2 and #3. August 1 Final Challenges 1. ISSUE: Scrolling Text Wanted to have “scrolling text,” but I don’t think it can be accomplished within the basic Retro Game I created. RESOLVED: I increased the game board to fit the “Treasures,” treasure longest line, "You discovered Imperial Faberge Eggs!". Within game.py, I moved all the “lines” and “end caps” by 4 increments to center the game with equal spacing on left and right sides. 2. ISSUE: Final Score to state players playing level. I wanted the final score to read the players level after the last “treasure” was acquired and named. To incorporate into the code, “0-30 Beginner, 30-50 Novice, 60 Expert.” NOT RESOLVED: within treasure.py At final score, adding, 0-30 Beginner, 30-50 Novice, 60 Expert? I tried with some code from Copilot A, but it overwrote the score title over the Treasure discovered. And once the player scored 60 points, in the message state at the top read “final_score_message_set: True.” Not what I wanted to appear and I didn’t know how to resolve the code to work. The code follows: DIDN'T WORK: Tried in game. py state = {'score':0, 'lives':3, 'final_score_message_set': False} game = Game(agents, state, board_size, color="white") game.play() DIDN'T WORK: Tried in Treasure.py if not game.state.get('final_score_message_set', False): final_score = game.state["score"] if final_score <= 30: game.state['message'] = "Beginner Treasure Hunter!" elif 30 < final_score <= 50: game.state['message'] = "Novice Treasure Hunter!" elif final_score >= 60: game.state['message'] = "You Win Expert Treasure Hunter!" game.end() # Set the flag to indicate the final score message has been set game.state['final_score_message_set'] = True 3. ISSUE: Automatically reset and move the “Treasures” and “Traps” to a new position on the game board when the player plays the game for a second and additional times. I wanted to make the game interesting and not predictable. NOT RESOLVED: I don't know how to code this to make it work. |
||
---|---|---|
1_Retro_Python_Game_LostWorldTreasures | ||
__pycache__ | ||
.DS_Store | ||
1_Retro_Python_Game_LostWorldTreasures.docx | ||
endcap.py | ||
game.py | ||
game_original_layout.py | ||
player.py | ||
poetry.lock | ||
pyproject.toml | ||
trap.py | ||
treasure.py | ||
wall.py | ||
wall_vert.py |