fungamer2-2 / life-simulator1 Goto Github PK
View Code? Open in Web Editor NEWA life simulator in Python inspired by "Bitlife - Life Simulator"
License: MIT License
A life simulator in Python inspired by "Bitlife - Life Simulator"
License: MIT License
I'm thinking about adding traits to the game. Some positive, some negative, but they should all affect gameplay in different ways. Although this isn't in BitLife, I'm considering adding it to this game.
There should be different traits, some positive, some negative. They should be randomized when choosing "Random Life", and should be selectable when choosing "Custom Life". Also, two opposite traits should not be possible to receive at the same time.
I'm trying to come up with as many as I can. Please suggest traits in the comments and I may add them to this list.
Positive Traits:
Negative Traits:
Mixed Traits (both positive and negative elements)
None
I visited your repo and saw that you do not have a contributing.md file yet. A contributing.md file lets new people understand how to fork the repo and create pull/merge requests,
Life-Simulator crashes when surrendering at age 0
`An error has occured
Traceback (most recent call last):
File "lifesim.py", line 22, in
main_menu(player)
File "Life-Simulator1/src/menus/main.py", line 1197, in main_menu
player.die(("You surrendered."))
File "Life-Simulator1/src/people/classes/player.py", line 525, in die
print_align_bars((("Lifetime Happiness"), avg_happy), (_("Karma"), self.karma))
UnboundLocalError: local variable 'avg_happy' referenced before assignment
Please report this bug on Github
https://github.com/fungamer2-2/Life-Simulator1/issues/new?template=bug_report.md
`
Hello, Iād work on the French translation, could you assign it to me?
Hi, There is no option for updating player name. Can I add this feature. Can you also tell how to play the game.
Hey I'd like to contribute in adding spanish translations to lifesim.pot!
If possible for hacktoberfest!
Too much happening, could be better using proper indentations
Example:
Your name: Ozzie Powers
Gender: Male
Money: $0
Happiness: [|||||||||||||||| ] 65%
Health: [|||||||||||||||||||||||| ] 96%
Smarts: [|||||||||| ] 38%
Looks: [|||||||||||| ] 48%
After pressing enter, you enter a broken stage in which all you can do is press ENTER to do nothing, or CTRL+C to end the program.
Is your feature request related to a problem? Please describe.
The game source code is all contained in lifesim.py
.
This makes it difficult to navigate and maintain.
Describe the solution you'd like
The source code should be broken up into multiple files.
Describe alternatives you've considered
N/A
Additional context
The structure can be something like this
lifesim.py
src/lib/lib.py
src/menus/menu_main.py
src/people/class_gender.py
src/people/class_parent.py
src/people/class_person.py
src/people/class_player.py
src/people/class_relationship.py
The library and menu should also be broken down further but that can be another issue.
I would like to do this during hacktoberfest if possible, please tag the hacktoberfest tag.
I cloned the main repo to test/help with issues but was unable to run the code due to missing commas in the const.py file
python3 lifesim.py
Normal: The game to run normally
What happens: Receive error messages
N/A
N/A
Is your feature request related to a problem? Please describe.
Code style check are done manually.
This can be tedious and can easily result in mistakes.
Describe the solution you'd like
Implement GitHub actions for linting and add a GitHub badge to the README
Describe alternatives you've considered
N/A
Additional context
@fungamer2-2 Please let me know what linter you would like to go for.
I recommend black because it ensures everyone is using the exact same format but it can result in some pretty ugly code especially since there are a lot of indent levels in the current code.
Some alternatives are pylint and flake8
I would like to do this during hacktoberfest if possible, please tag the hacktoberfest tag.
When aging up while pregnant, an "Attribute Error: 'NoneType' object has no attribute 'lastname'" occurs
be female, age up, get pregnant, attempt to age up again.
Age up as usual + 1 (unless twins is possible) baby with Random name + selection of surname if mother and father don't share the same surname.
Localization
Adding Nepali Locale
A description of any alternative solutions you've considered, if any.
For localization of this project, I would like to make a nepali translation
The POT file extension is used by Microsoft PowerPoint, as an Office 1997-2003 template.
Get PowerPoint.
Notice that lifesim.pot appears with a PowerPoint icon.
Try to open it and it cannot read it.
The file extension for the localisation file should not be taken by any major program. I would recommend changing the .pot to something else.
Change the .pot to something else to avoid confusion.
No jobs added yet
main.py is not calling on const.py for conversation lists
age up to age 3, select 'Relationships' > 'have a conversation'.
selecting 'have a conversation' with your {relation} should pick a random conversation from const.py 's CHATS, CHATS_CHILD, DISCUSSIONS, or DISCUSSIONS_CHILD lists
Hello, Iād like to work on the Indonesia (ID) translation, could you assign it to me as well?
I'd like to add activities if the player age is under 13
A declarative, efficient, and flexible JavaScript library for building user interfaces.
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ššš
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ā¤ļø Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.