Your Tamagotchi-like friends :D
Project designed to help you learn how to work with Object-Oriented Programming (OOP) and make pull requests on GitHub to get started in the world of open source code.
If you plan on doing the full exercise and doing a Pull Request then you'll have to fork the project pressing the Fork button above (I know, my instructions are great).
Then you go to the Forked project on your own repos and download it or clone it:
git clone LINK_TO_FORKED_REPO
Go to the project folder and the run the program:
python main.py
If you only want to download it and test it
Download the source code or clone the repo with:
git clone https://github.com/AnyeloHernandez/OOPets
Go to the project folder and the run the program:
python main.py
If you are starting on programming or learning how to work on someone else's code, don't worry, here is a step by step on how you can add you own pet and then vizualise it on your program :D
- Create a new file with the animal name on /pets
- Use inheritance to set the behavour of an Animal to your pet.
- Create your own custom methods of the class.
- Add your drawing on pets/media/ (the size can be 320x400)
- Instanciate the pet on logic_controller and add it to the List.
Now that you have a cute and friendly (or not) pet, you'll wonder how I can push my changes to the main repository. Do not fear, here's how you will do it.
Since you Forked the repo before (I know you did it, I hope), now you have to make a Pull Request:
- Go to the main repository
- Go to Pull Requests
- Press on "New pull request" button (the green one).
- Select the main branch from the base repository and your branch from your repo and press Create pull request button.
- Describe what you changed and hit Publish.