Skip to content

Commit

Permalink
Add code-along files
Browse files Browse the repository at this point in the history
  • Loading branch information
ariannedee committed Nov 14, 2019
1 parent 6456768 commit 543fed0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Refactoring/refactoring_5_inheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Each player takes turn rolling a die and moving that number of spaces.
The first person to space 100 wins.
Object-oriented with a Player and Game objects
Object-oriented with a LuckyPlayer and Game objects
"""
import random

Expand Down
14 changes: 14 additions & 0 deletions bike_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
Bike class for use in a retail shop
"""


if __name__ == '__main__':
# Create bike

# Update sale price

# Sell bike

# Determine profit
pass
10 changes: 10 additions & 0 deletions game_refactoring.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
Simulate a simple board game.
There are 2 players.
Each player takes turn rolling a die and moving that number of spaces.
The first person to space 100 wins.
"""


if __name__ == '__main__':
pass

0 comments on commit 543fed0

Please sign in to comment.