Skip to content

Commit e0fa325

Browse files
committed
New directory for OOP
1 parent b9e6494 commit e0fa325

File tree

4 files changed

+123
-1
lines changed

4 files changed

+123
-1
lines changed

.gitignore

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
48+
# Translations
49+
*.mo
50+
*.pot
51+
52+
# Django stuff:
53+
*.log
54+
local_settings.py
55+
56+
# Flask stuff:
57+
instance/
58+
.webassets-cache
59+
60+
# Scrapy stuff:
61+
.scrapy
62+
63+
# Sphinx documentation
64+
docs/_build/
65+
66+
# PyBuilder
67+
target/
68+
69+
# IPython Notebook
70+
.ipynb_checkpoints
71+
72+
# pyenv
73+
.python-version
74+
75+
# celery beat schedule file
76+
celerybeat-schedule
77+
78+
# dotenv
79+
.env
80+
81+
# virtualenv
82+
venv/
83+
ENV/
84+
85+
# Spyder project settings
86+
.spyderproject
87+
88+
# Rope project settings
89+
.ropeproject
90+
91+
doc/_build
92+
93+
*.swp

OOP/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Learn Python
2+
3+
### OOP - Building Your Own Classes, Constructors and Methods
4+
5+
An adaptation of the Zombie-House game using Object-Oriented Programming concepts.
6+
7+
There are many good resources for learning OOP. These examples are based on a course developed by the Raspberry Pi Foundation:
8+
[Object-oriented Programming in Python: Create Your Own Adventure Game](https://www.futurelearn.com/courses/object-oriented-principles). This is a free course and enrollment is open several times a year.
9+
10+
This library contains classes that can be used to create objects in the game such as rooms and items to be placed into the player's inventory. By using the Adventurelib library, you are beginning to learn the use of Object-Oriented Programming.
11+
12+
**New Concepts:**
13+
14+
* Classes
15+
1. Room()
16+
2. Item()
17+
3. Character()
18+
19+
* Constructors
20+
1. __init__
21+
2. attributes
22+
3. instances
23+
24+
* Getters
25+
26+
* Setters
27+

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
* Using Adventurelib - An adaptation of the Zombie-House game using the Adventurelib library.
88

9+
* OOP - Building Your Own Classes and Methods
10+
911
*Learn to Program, Roanoke is a Noke Codes community project.*
1012

1113
Prouly hosted on Github :octocat:

Using-Adventurelib/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ An adaptation of the Zombie-House game using the Adventurelib library.
66

77
Full documentation of Adventurelib is [here](https://adventurelib.readthedocs.io/).
88

9-
This library contains classes that can be used to create objects in the game such as rooms and items to be placed into the player's inventory.
9+
This library contains classes that can be used to create objects in the game such as rooms and items to be placed into the player's inventory. Using the Adventurelib library is an introduction to Object-Oriented Programming (OOP) concepts.
1010

1111
**New Concepts:**
1212

0 commit comments

Comments
 (0)