Fix edit URLs and docs
This commit is contained in:
parent
08e5021242
commit
d07e3abc99
6 changed files with 0 additions and 85 deletions
|
|
@ -1,6 +0,0 @@
|
|||
# Day 16 - Learning OOP with Python
|
||||
|
||||
- OOP concepts were taught in the source main.py file, such as classes, attributes, and methods. The Turtle and prettytable packages were also used to explore these concepts, and I installed prettytable in a virtual environment for this.
|
||||
- The main objective of today is to simulate a coffee machine using OOP in the oop-coffee-machine folder. The coffee_maker.py, menu.py, and money_machine.py were given as abstract modules to work from in order to understand OOP.
|
||||
|
||||

|
||||
|
|
@ -1,6 +0,0 @@
|
|||
# Day 17 - Implementing Classes
|
||||
|
||||
- Learned the structure of creating a class with its attributes, methods, and how to initialize objects
|
||||
- Created a trivia quiz game, with some neat questions from [opentdb](https://opentdb.com/).
|
||||
|
||||

|
||||
|
|
@ -1,29 +0,0 @@
|
|||
# Day 18 - Turtle & the Graphical User Interface (GUI)
|
||||
|
||||
- Developed various basic turtle graphics.
|
||||
- Spirograph, random walk, various polygons, dashed line, and square.
|
||||
- Formed a dot art based on Hirst artwork.
|
||||
|
||||
## Dot art
|
||||
|
||||

|
||||
|
||||
## Spirograph
|
||||
|
||||

|
||||
|
||||
## Random Walk
|
||||
|
||||

|
||||
|
||||
## Polygons
|
||||
|
||||

|
||||
|
||||
## Dashed Line
|
||||
|
||||

|
||||
|
||||
## Square
|
||||
|
||||

|
||||
|
|
@ -1,21 +0,0 @@
|
|||
# Day 19 - Instances, State, and Higher Order Functions
|
||||
|
||||
- Built an etch-a-sketch while understanding higher order functions
|
||||
- Simulated a turtle race with randomized steps using class instances
|
||||
|
||||
## Etch-a-Sketch
|
||||
|
||||

|
||||
|
||||
This etch-a-sketch uses higher order functions to run when keys are pressed on the keyboard.
|
||||
- **w** - Move forwards
|
||||
- **s** - Move backwards
|
||||
- **a** - Turn left
|
||||
- **d** - Turn right
|
||||
- **c** - Reset etch-a-sketch
|
||||
|
||||
## The Great Turtle Race
|
||||
|
||||

|
||||
|
||||
The Great Turtle Race uses multiple instances of the Turtle object from [the turtle module](https://docs.python.org/3/library/turtle.html) that move by a random number of steps to the edge of the screen.
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
# Day 20 - Build the Snake Game Part 1: Animation & Coordinates
|
||||
|
||||
- Made a controllable snake, and will complete the full snake game on Day 21.
|
||||
- Abstracted snake logic into a Snake class.
|
||||
|
||||
## Snake
|
||||
|
||||

|
||||
|
|
@ -1,15 +0,0 @@
|
|||
# Day 21 - Build the Snake Game Part 2: Inheritance & List Slicing
|
||||
|
||||
- Built a snake game.
|
||||
- Learned about class inheritance and list slicing.
|
||||
|
||||
```python
|
||||
# The Fish class inherits the attributes and methods of the Animal class
|
||||
class Fish(Animal):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
```
|
||||
|
||||
## Snake Game
|
||||
|
||||

|
||||
Loading…
Add table
Add a link
Reference in a new issue