Skip to content

Update rpg_game.py + Add scenes.py#1

Open
yaong-27 wants to merge 11 commits intoTagYurIt:mainfrom
yaong-27:main
Open

Update rpg_game.py + Add scenes.py#1
yaong-27 wants to merge 11 commits intoTagYurIt:mainfrom
yaong-27:main

Conversation

@yaong-27
Copy link

@yaong-27 yaong-27 commented Nov 9, 2025

Rpg_game.py

  • Added the str_c function, that has the task to facilitate the coloring operation applied to Strings or Integer values
  • Transferred scenes_list into scenes.py for better code organization
  • Added the get_scenes method that retrieves the scenes list from scenes.py
  • Fixed a bug related to the generation of the index of scene_list, using len(scene_list) - 1
  • Fixed some minor typos

Scenes.py

It's a module file that has the task to store and transfer the scenes list to the main program.
However, it would be preferable to use a text file or a JSON one in case of a bigger list of scenes.

- Fixed some typos
- Added a new function that facilitates the procedure to color strings
- Transferred the scene list into scenes.py
Module file that returns the scenes list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant