Skip to content

UCYT5040/Duckify-Encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Duckify Encoder

Usage

Download main.py and run it.

main.py has an encoded version in encoded_main.py.txt.

As A Module

Download the duckify folder (or just download duckify.py from there.)

If you downloaded the folder:

|--[main.py]
|--[duckify]
   |--[__main__.py]
   |--[duckify.py (can be deleted)]
main.py:
import duckify
duckify.encode("hi")
duckify.decode("stuff to decode")

If you downloaded the file:

|--[main.py]
|--[duckify.py]
main.py:
import duckify
duckify.encode("hi")
duckify.decode("stuff to decode")

How It Works

Space ( ) shows a new character. Every new character has a value.

Values

Emoji Name Value
πŸ¦† Duck 1
🌽 Corn 10
πŸ₯¬ Lettuce 100
πŸ“* Strawberry 1000
πŸ₯¦* Broccoli 5000

*Not added to examples yet

It checks how many broccoli it can subtract. Then, how many lettuce. Then, how many strawberry. Then, how many corn. Last, how many duck.

Examples

Duckify 'a'

ord('a') == 97

Result: 'πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†'

9 corn * 10 per corn = 90 + 7 duck * 1 per duck = 97

Duckify 'abc'

ord('a') == 97

ord('b') == 98

ord('c') == 99

Result: 'πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦† πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦† πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸŒ½πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†πŸ¦†'

space ( ) is used to show a new character

About

Encode stuff with ducks!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages