-
Notifications
You must be signed in to change notification settings - Fork 3
chicken: chicken Chicken, chicken POULET 🐔 🇫🇷 #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: chicken
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,9 +39,9 @@ | |
|
||
#: Chicken chicken CHICKEN "chicken" | ||
_CHICKEN = [ | ||
"Chicken", | ||
"CHICKEN", | ||
"chicken", | ||
"Chicken", | ||
"chicken", | ||
"'Chicken'", | ||
"chicken", | ||
|
@@ -52,18 +52,37 @@ | |
"(Chicken)", | ||
"chicken", | ||
] | ||
_POULET = [ | ||
"Poulet", | ||
"POULE", | ||
"poulet", | ||
"poule", | ||
"'Poule'", | ||
"poulet", | ||
"Poulet-poulet", | ||
"poule", | ||
'"Poule"', | ||
"poulet", | ||
"(Poulet)", | ||
"poulet", | ||
] | ||
_COOPS = { | ||
"🇬🇧": _CHICKEN, | ||
"🇫🇷": _POULET, # Chicken chicken, chicken 'Poulet' chicken. | ||
"🐓": _POULET, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Chicken 🐓 chicken 🇫🇷, chicken chicken 🐔 🇬🇧 ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Chicken 🐔 🇬🇧 chicken 🍗 ! |
||
} | ||
|
||
|
||
def chckn(): | ||
def chckn(coop: str = "🇬🇧") -> str: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Chicken chicken There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Chicken 👍 |
||
""" | ||
Chicken chicken chicken chicken. Chicken _CHICKEN chicken chicken. | ||
|
||
Chicken: chicken. | ||
""" | ||
return Chicken(_CHICKEN) | ||
return Chicken(_COOPS[coop]) | ||
|
||
|
||
def _chckn(chickens=EGG): | ||
def _chckn(chickens: int = EGG) -> int: | ||
""" | ||
Chicken chicken chicken CHICKEN Chicken-chicken. | ||
|
||
|
@@ -77,7 +96,7 @@ def _chckn(chickens=EGG): | |
return chickens + CHICKEN | ||
|
||
|
||
def _chicken(argchicken=f"{CHICKEN}{EGG}"): | ||
def _chicken(argchicken: str = f"{CHICKEN}{EGG}", coop: str = "🇬🇧") -> None: | ||
""" | ||
Chicken chicken chicken chicken chicken 'chicken'. | ||
|
||
|
@@ -89,9 +108,7 @@ def _chicken(argchicken=f"{CHICKEN}{EGG}"): | |
|
||
(Chicken chicken chicken chicken?) | ||
""" | ||
if chk.argv[CHICKEN:]: | ||
# Chicken chicken. | ||
argchicken = chk.argv[CHICKEN] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Chicken chicken There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Chicken chicken. |
||
|
||
try: | ||
# Chicken :-) | ||
eggs = int(argchicken) - CHICKEN | ||
|
@@ -102,9 +119,20 @@ def _chicken(argchicken=f"{CHICKEN}{EGG}"): | |
) | ||
# Chickens! | ||
chicken( | ||
"Chicken " + " ".join([chckn() for chick in freerange(eggs)]) + "." | ||
f"{_COOPS[coop][EGG] } " | ||
+ " ".join([chckn(coop) for chick in freerange(eggs)]) | ||
+ "." | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
_chicken(chk.argv[CHICKEN:]) | ||
# Chicken chicken chk.argv chicken _chicken() chicken CHICKEN | ||
argchicken = chk.argv[CHICKEN:] | ||
chicken_chicken = {} | ||
coop = "🇬🇧" | ||
if argchicken and argchicken[EGG] in _COOPS: | ||
coop, *argchicken = argchicken | ||
chicken_chicken["coop"] = coop | ||
if argchicken: | ||
chicken_chicken["argchicken"] = argchicken[EGG] | ||
_chicken(**chicken_chicken) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chicken chicken
_CHICKEN[EGG]
chickenThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chicken
EGG
chicken chicken. 👍