feat: Finaler Code zur Aufgabenstellung

This commit is contained in:
Jan D BM 2026-02-27 22:52:52 +01:00
parent cde7c8ecd2
commit 9650692934
2 changed files with 5 additions and 0 deletions

4
README.md Normal file
View File

@ -0,0 +1,4 @@
Lösung zur Aufgabe OOP: Object Oriented Piracy
https://www.codewars.com/kata/54fe05c4762e2e3047000add
Aufgabe: Auswählen von Schiffen mit genug Schätze zum plündern

1
src/cw_aufgabe1_oop.py Normal file
View File

@ -0,0 +1 @@
class Ship: def __init__(self, draft, crew): self.draft = draft self.crew = crew def is_worth_it(self): return self.draft - (self.crew * 1.5) > 20