Mreow :3
This commit is contained in:
parent
e82e691801
commit
9f8cecf9f4
10 changed files with 70 additions and 1 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
*.db
|
||||||
|
*.py[cod]
|
||||||
|
.web
|
||||||
|
__pycache__/
|
||||||
|
assets/external/
|
3
.idea/.gitignore
generated
vendored
Normal file
3
.idea/.gitignore
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
8
.idea/Cat2Text.iml
generated
Normal file
8
.idea/Cat2Text.iml
generated
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="PYTHON_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
6
.idea/inspectionProfiles/profiles_settings.xml
generated
Normal file
6
.idea/inspectionProfiles/profiles_settings.xml
generated
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<settings>
|
||||||
|
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||||
|
<version value="1.0" />
|
||||||
|
</settings>
|
||||||
|
</component>
|
7
.idea/misc.xml
generated
Normal file
7
.idea/misc.xml
generated
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Black">
|
||||||
|
<option name="sdkName" value="Python 3.11" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11" project-jdk-type="Python SDK" />
|
||||||
|
</project>
|
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/Cat2Text.iml" filepath="$PROJECT_DIR$/.idea/Cat2Text.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
18
Cat2Text.py
Normal file
18
Cat2Text.py
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
alphabet = ["a","b","c"]
|
||||||
|
|
||||||
|
def translate(data):
|
||||||
|
data = data.lower()
|
||||||
|
data = data.replace("meow","0").replace("mrrp", "1").replace("mreow", "2").replace("mrow", "3").replace(" ", "")
|
||||||
|
seperatewords = data.split(";")
|
||||||
|
finalwordlist = []
|
||||||
|
for i in seperatewords:
|
||||||
|
letters = [i[e:e+3] for e in range(0, len(i), 3)]
|
||||||
|
lettersinword = []
|
||||||
|
for x in letters:
|
||||||
|
letternum = int(x,4)
|
||||||
|
letter = chr(ord('`') + letternum)
|
||||||
|
lettersinword.append(letter)
|
||||||
|
finalwordlist.append(''.join(lettersinword))
|
||||||
|
return ' '.join(finalwordlist)
|
||||||
|
catspeak = input("Please input the cat's words: ")
|
||||||
|
print(translate(catspeak))
|
|
@ -1,2 +1,9 @@
|
||||||
# Cat2Text
|
# Cat2Text
|
||||||
It translates Meow's that are in base 4 to text :3
|
Translates cat meows in a sort of base 4 into english with really bad code!
|
||||||
|
# Format
|
||||||
|
This requires all of your data to add up to the letter number in the english language ex. a = 1, z = 26. The data is practically in base 4 where meow = 0 mrrp = 1 mreow = 2 and mrow = 3, you do need leading 0's btw.
|
||||||
|
|
||||||
|
An example would be ```Meow mreow mrrp; meow mrow meow meow mrow mrow mrrp mrrp mreow meow mrrp mrrp; meow meow mrow meow meow mrrp mrrp mrrp meow mrrp meow mrow```.
|
||||||
|
Which converts to "i love cats"
|
||||||
|
|
||||||
|
More could be added on later but for now this is all.
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
reflex==0.6.4
|
Loading…
Add table
Add a link
Reference in a new issue