Giter Site home page Giter Site logo

fungamer2-2 / life-simulator1 Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 37.0 2.61 MB

A life simulator in Python inspired by "Bitlife - Life Simulator"

License: MIT License

Python 100.00%
hacktoberfest lifesim lifesimulator python3 simulation simulator

life-simulator1's People

Contributors

b5i avatar fungamer2-2 avatar furtidev avatar harish795r avatar hitblast avatar iqrar99 avatar jbidlack avatar kirkkm avatar mirusu400 avatar mrtanoshii avatar nishanth-thunder avatar shahgnp avatar skr301 avatar smritiwaiba avatar solumbra avatar spykelionel avatar yashm246 avatar yunsuklee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

life-simulator1's Issues

Traits Idea

Is your feature request related to a problem? Please describe.

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.

Describe the solution you'd like

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:

  • Nerd: Makes it easier to increase smarts by doing activities
  • Cheerful: Makes it easier to increase happiness

Negative Traits:

  • Grumpy: Harder to get into a good mood, harder to stay in a good mood

Mixed Traits (both positive and negative elements)

  • Moody: Happiness changes more, and the changes in happiness (either up or down) are more intense

Describe alternatives you've considered

None

A contributing.md file

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,

Error when surrender at age 0.

Describe the bug

Life-Simulator crashes when surrendering at age 0

Steps to reproduce

  1. Create a new game (language is not important)
  2. Create a new random life
  3. Surrender
  4. It crashes

Screenshots

`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
`

French translation

Hello, Iā€™d work on the French translation, could you assign it to me?

Spanish Translation

Hey I'd like to contribute in adding spanish translations to lifesim.pot!

If possible for hacktoberfest!

Restructure the project

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.

Missing commas in const.py

Describe the bug

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

Steps to reproduce

  1. Clone the main repo to your local machine
  2. Install all the dependencies
  3. run the code using the command python3 lifesim.py

Expected behavior

Normal: The game to run normally
What happens: Receive error messages

Screenshots

N/A

Additional context

N/A

Setup GitHub actions for python linting

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.

Generating babies attribute error

Describe the bug

When aging up while pregnant, an "Attribute Error: 'NoneType' object has no attribute 'lastname'" occurs

Steps to reproduce

be female, age up, get pregnant, attempt to age up again.

Expected behavior

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.

Screenshots

Additional context

Nepali Locale Request

Is your feature request related to a problem? Please describe.

Localization

Describe the solution you'd like

Adding Nepali Locale

Describe alternatives you've considered

A description of any alternative solutions you've considered, if any.

Additional context

For localization of this project, I would like to make a nepali translation

Lifesim.pot uses file extension that is already taken by another, major program

Describe the bug

The POT file extension is used by Microsoft PowerPoint, as an Office 1997-2003 template.

Steps to reproduce

Get PowerPoint.
Notice that lifesim.pot appears with a PowerPoint icon.
Try to open it and it cannot read it.

Expected behavior

The file extension for the localisation file should not be taken by any major program. I would recommend changing the .pot to something else.

Recommended Fix

Change the .pot to something else to avoid confusion.

Conversations Key Error

Describe the bug

main.py is not calling on const.py for conversation lists

Steps to reproduce

age up to age 3, select 'Relationships' > 'have a conversation'.

Expected behavior

selecting 'have a conversation' with your {relation} should pick a random conversation from const.py 's CHATS, CHATS_CHILD, DISCUSSIONS, or DISCUSSIONS_CHILD lists

Activities

I'd like to add activities if the player age is under 13

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.