Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ chicken Chicken-chicken chicken chicken chicken Chicken chicken
Chicken-chicken 'Chicken' Chicken-chicken "Chicken" 'Chicken'.
```

Chicken chicken, chicken CHICKEN "chicken" chicken:

```
$ chicken 🇫🇷
Poulet poule (Poulet) poulet Poulet POULE poule poulet "Poule" poulet.
```

Chicken chicken "chicken":

* 🇬🇧 (Chicken): chicken
* 🇫🇷 (chicken 🐓): POULET

**Chicken..!**

## How to "Chicken" 🐓
Expand Down
48 changes: 38 additions & 10 deletions chicken.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@

#: Chicken chicken CHICKEN "chicken"
_CHICKEN = [
"Chicken",
"CHICKEN",
"chicken",
"Chicken",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chicken chicken _CHICKEN[EGG] chicken

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chicken EGG chicken chicken. 👍

"chicken",
"'Chicken'",
"chicken",
Expand All @@ -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,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chicken 🐓 chicken 🇫🇷, chicken chicken 🐔 🇬🇧 ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chicken 🐔 🇬🇧 chicken 🍗 !

}


def chckn():
def chckn(coop: str = "🇬🇧") -> str:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chicken chicken mypy chicken Makefile chicken Chicken.

Copy link
Owner

Choose a reason for hiding this comment

The 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.

Expand All @@ -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'.

Expand All @@ -89,9 +108,7 @@ def _chicken(argchicken=f"{CHICKEN}{EGG}"):

(Chicken chicken chicken chicken?)
"""
if chk.argv[CHICKEN:]:
# Chicken chicken.
argchicken = chk.argv[CHICKEN]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chicken chicken argchicken chicken _chicken() chicken CHICKEN chk.argv

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chicken chicken.


try:
# Chicken :-)
eggs = int(argchicken) - CHICKEN
Expand All @@ -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)