Skip to content

Commit

Permalink
🏡 Can cure and clean pet
Browse files Browse the repository at this point in the history
  • Loading branch information
rozaxe committed Nov 29, 2018
1 parent 16463d2 commit 9afed65
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 15 deletions.
15 changes: 11 additions & 4 deletions src/main/⌚️.emojic
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,13 @@
πŸ” pet 0 ❗️
🎾 pet 0 ❗️
⏰ pet current❗
πŸŽ₯πŸ‡πŸ“€ pet❗️
πŸ‰

πŸ’­ Update state
πŸ†•πŸŽ°πŸ†•β—οΈ ➑️ generator

πŸ’­ Decrease food and fun with 1/15
πŸ”’ generator 1 15 ❗️ ➑️ alea
πŸ”’ generator 1 15 ❗️ ➑️ πŸ–πŸ†• alea
β†ͺ️ alea πŸ™Œ 1 πŸ‡

πŸ’­ Decrease hunger gauge
Expand All @@ -53,7 +52,6 @@

πŸ’­ Update pet info
πŸ” pet fullness ❗️
πŸŽ₯πŸ‡πŸ“€ pet❗️
πŸ‰

πŸ’­ Decrease fun gauge
Expand All @@ -63,13 +61,22 @@

πŸ’­ Update pet info
🎾 pet fun ❗️
πŸŽ₯πŸ‡πŸ“€ pet❗️
πŸ‰
πŸ‰

πŸ’­ Set sick with 1/50
πŸ”’ generator 1 50 ❗️ ➑️ πŸ–alea
β†ͺ️ alea πŸ™Œ 1 πŸ‡
πŸ’Š pet 1 ❗️
πŸ‰

πŸ’­ Set dirty with 1/50
πŸ”’ generator 1 50 ❗️ ➑️ πŸ–alea
β†ͺ️ alea πŸ™Œ 1 πŸ‡
🧼 pet 1 ❗️
πŸ‰

πŸ’­ Save everything
πŸŽ₯πŸ‡πŸ“€ pet❗️
πŸ‰
πŸ‰
35 changes: 32 additions & 3 deletions src/main/🐢.emojic
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@

πŸ–πŸ†• last_day_of_love πŸ”’

πŸ†• 🍼 species πŸ”‘ 🍼 love πŸ”’ 🍼 fullness πŸ”’ 🍼 fun πŸ”’ 🍼 last_day_of_love πŸ”’ πŸ‡πŸ‰
πŸ–πŸ†• sick πŸ”’

πŸ–πŸ†• dirty πŸ”’

πŸ†• 🍼 species πŸ”‘ 🍼 love πŸ”’ 🍼 fullness πŸ”’ 🍼 fun πŸ”’ 🍼 last_day_of_love πŸ”’ 🍼 sick πŸ”’ 🍼 dirty πŸ”’ πŸ‡πŸ‰

πŸ†•πŸ₯š 🍼 species πŸ”‘ πŸ‡
0 βž‘οΈπŸ– love
2 βž‘οΈπŸ– fullness
2 βž‘οΈπŸ– fun
πŸ•°πŸ‡πŸ’»β— βž‘οΈπŸ– last_day_of_love
0 βž‘οΈπŸ– sick
0 βž‘οΈπŸ– dirty
πŸ‰

πŸ’­ Serialize pet data
Expand All @@ -30,6 +36,8 @@
🐻 info πŸ”‘ fullness 10 ❗️❗️
🐻 info πŸ”‘ fun 10 ❗️❗️
🐻 info πŸ”‘ last_day_of_love 10 ❗️❗️
🐻 info πŸ”‘ sick 10 ❗️❗️
🐻 info πŸ”‘ dirty 10 ❗️❗️

πŸ’­ Join it by adding new line
πŸ†•πŸ”‘πŸ¨ info πŸ”€βŒnπŸ”€β—οΈ ➑️ stringify
Expand All @@ -46,7 +54,7 @@
πŸ”« content πŸ”€βŒnπŸ”€ β—οΈβž‘οΈ lines

πŸ’­ Check for invalid pet file
β†ͺ️❎ 5 πŸ™Œ πŸ” lines β—οΈβ—οΈπŸ‡
β†ͺ️❎ 7 πŸ™Œ πŸ” lines β—οΈβ—οΈπŸ‡
β†©οΈπŸ€·β€β™‚οΈ
πŸ‰

Expand All @@ -56,19 +64,25 @@
🐽 lines 2 β—οΈβž‘οΈ fullness_str
🐽 lines 3 β—οΈβž‘οΈ fun_str
🐽 lines 4 β—οΈβž‘οΈ last_day_of_love_str
🐽 lines 5 β—οΈβž‘οΈ sick_str
🐽 lines 6 β—οΈβž‘οΈ dirty_str

πŸ’­ Handle parsing
πŸ”’ love_str 10β—οΈβž‘οΈ love
πŸ”’ fullness_str 10β—οΈβž‘οΈ fullness
πŸ”’ fun_str 10β—οΈβž‘οΈ fun
πŸ”’ last_day_of_love_str 10β—οΈβž‘οΈ last_day_of_love
πŸ”’ sick_str 10β—οΈβž‘οΈ sick
πŸ”’ dirty_str 10β—οΈβž‘οΈ dirty

β†ͺοΈπŸ€·β€β™‚οΈπŸ™Œ love πŸ‡β†©οΈπŸ€·β€β™‚οΈπŸ‰
β†ͺοΈπŸ€·β€β™‚οΈπŸ™Œ fullness πŸ‡β†©οΈπŸ€·β€β™‚οΈπŸ‰
β†ͺοΈπŸ€·β€β™‚οΈπŸ™Œ fun πŸ‡β†©οΈπŸ€·β€β™‚οΈπŸ‰
β†ͺοΈπŸ€·β€β™‚οΈπŸ™Œ last_day_of_love πŸ‡β†©οΈπŸ€·β€β™‚οΈπŸ‰
β†ͺοΈπŸ€·β€β™‚οΈπŸ™Œ sick πŸ‡β†©οΈπŸ€·β€β™‚οΈπŸ‰
β†ͺοΈπŸ€·β€β™‚οΈπŸ™Œ dirty πŸ‡β†©οΈπŸ€·β€β™‚οΈπŸ‰

πŸ†•πŸΆπŸ†• species 🍺love 🍺fullness 🍺fun 🍺last_day_of_love β—οΈβž‘οΈ pet
πŸ†•πŸΆπŸ†• species 🍺love 🍺fullness 🍺fun 🍺last_day_of_love 🍺sick 🍺dirty β—οΈβž‘οΈ pet
↩️ pet
πŸ‰

Expand All @@ -94,6 +108,13 @@
↩️ last_day_of_love
πŸ‰

β—πŸŒ‘βž‘οΈπŸ”’πŸ‡
↩️ sick
πŸ‰

β—πŸ‚βž‘οΈπŸ”’πŸ‡
↩️ dirty
πŸ‰

πŸ’­ Setters

Expand All @@ -112,4 +133,12 @@
❗⏰ value πŸ”’πŸ‡
value ➑️ πŸ–last_day_of_love
πŸ‰

β—πŸ’Š value πŸ”’πŸ‡
value ➑️ πŸ–sick
πŸ‰

β—πŸ§Ό value πŸ”’πŸ‡
value ➑️ πŸ–dirty
πŸ‰
πŸ‰
79 changes: 73 additions & 6 deletions src/main/πŸ—Ί.emojic
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,67 @@
πŸ‰
πŸ‰

πŸ’­ Cure process
πŸ‡β—πŸ’Š activity πŸ”‘πŸ‡

β†ͺ️ πŸ“½πŸ‡πŸ“€β—οΈβž‘οΈ pet πŸ‡

πŸ’­ Get sick status
🌑 pet ❗️ ➑️ sick

β†ͺ️ sick πŸ™Œ 1 πŸ‡

πŸ’­ Update pet info
πŸ’Š pet 0 ❗️
πŸŽ₯πŸ‡πŸ“€ pet❗️

πŸ’­ Feedback
πŸ˜€ πŸͺ 🧬pet❗️ πŸ”€ is curedπŸ”€ πŸͺ ❗️
πŸ‰
πŸ™…πŸ‡
πŸ’­ Not sick
πŸ˜€ πŸͺ 🧬pet❗️ πŸ”€ is not sickπŸ”€ πŸͺ ❗️
πŸ‰
πŸ‰
πŸ‰

πŸ’­ Cure process
πŸ‡β—πŸ§Ό activity πŸ”‘πŸ‡

β†ͺ️ πŸ“½πŸ‡πŸ“€β—οΈβž‘οΈ pet πŸ‡

πŸ’­ Get dirty status
πŸ‚ pet ❗️ ➑️ dirty

β†ͺ️ dirty πŸ™Œ 1 πŸ‡

πŸ’­ Update pet info
🧼 pet 0 ❗️
πŸŽ₯πŸ‡πŸ“€ pet❗️

πŸ’­ Feedback
πŸ˜€ πŸͺ 🧬pet❗️ πŸ”€ is cleanedπŸ”€ πŸͺ ❗️
πŸ‰
πŸ™…πŸ‡
πŸ’­ Not dirty
πŸ˜€ πŸͺ 🧬pet❗️ πŸ”€ is not dirtyπŸ”€ πŸͺ ❗️
πŸ‰
πŸ‰
πŸ‰

πŸ’­ Status process
πŸ‡β—πŸ“ŠπŸ‡

β†ͺ️ πŸ“½πŸ‡πŸ“€β—οΈβž‘οΈ pet πŸ‡

πŸ˜€πŸ§¬ pet ❗️❗️
πŸ‘„πŸ§¬ pet ❗️❗️
β†ͺ️ 🌑 pet ❗️ πŸ™Œ 1 πŸ‡
πŸ‘„πŸ”€ πŸŒ‘πŸ”€β—οΈ
πŸ‰
β†ͺ️ πŸ‚ pet ❗️ πŸ™Œ 1 πŸ‡
πŸ‘„πŸ”€ πŸ‚πŸ”€β—οΈ
πŸ‰
πŸ˜€πŸ”€πŸ”€β—οΈ

πŸ‘„ πŸ”€β€οΈ πŸ”€β—οΈ
πŸ”‚ i πŸ†•β©β© 0 πŸ’– pet ❗️❗️ πŸ‡
Expand Down Expand Up @@ -102,12 +157,24 @@
πŸ’­ Get only first grapheme
πŸ”ͺ input 0 1❗️ ➑️ species

πŸ˜€ πŸͺπŸ”€You're in luck ! We just found a πŸ”€ species πŸ”€ waiting for some love from a new family.πŸ”€ πŸͺ❗️
β†ͺ️ πŸΆπŸ• species❓ πŸ‡
πŸ˜€ πŸͺπŸ”€You're in luck ! We just found a πŸ”€ species πŸ”€ waiting for some love from a new family.πŸ”€ πŸͺ❗️
πŸ˜€ πŸ”€Adoption process done, enjoy your new life with your new bestfriend !πŸ”€β—οΈ

πŸ’­ Build pet
πŸ†•πŸΆπŸ₯š species❗️ ➑️ pet
πŸ’­ Build pet
πŸ†•πŸΆπŸ₯š species❗️ ➑️ pet

πŸ’­ Save it
πŸŽ₯πŸ‡πŸ“€ pet❗️
πŸ’­ Save it
πŸŽ₯πŸ‡πŸ“€ pet❗️
πŸ‰
πŸ™…πŸ‡
πŸ˜€ πŸͺπŸ”€Sorry but we do not have any `πŸ”€ species πŸ”€` here.πŸ”€ πŸͺ❗️
πŸ‰
πŸ‰

πŸ’­ Check if a grapheme is animal emoji
πŸ‡β“πŸΆ str πŸ”‘ ➑️ πŸ‘Œ πŸ‡
↩️ ❎ πŸ€·β€β™‚οΈ πŸ™Œ πŸ” πŸΆπŸ‡πŸ˜€β—οΈ str❗️❗️
πŸ‰
πŸ‰

10 changes: 10 additions & 0 deletions src/main/πŸ˜€.emojic
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,14 @@
πŸ‡β—πŸ₯ ➑️ πŸ”‘πŸ‡
↩️ πŸ”€βš½οΈπŸ€πŸˆβšΎοΈπŸ₯ŽπŸŽΎπŸπŸ‰πŸ₯πŸ›ΉπŸ›·πŸ”€
πŸ‰

πŸ’­ Cure
πŸ‡β—πŸ’Š ➑️ πŸ”‘πŸ‡
↩️ πŸ”€πŸ’ŠπŸ’‰πŸ§ͺπŸ”€
πŸ‰

πŸ’­ Clean
πŸ‡β—πŸ§Ό ➑️ πŸ”‘πŸ‡
↩️ πŸ”€πŸšΏπŸ›πŸ§ΌπŸ§½πŸ§΄πŸ”€
πŸ‰
πŸ‰
43 changes: 41 additions & 2 deletions src/main/πŸ€–.emojic
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,37 @@
πŸ’­ Play with pet
πŸ₯πŸ‡πŸ—Ί the_action ❗
πŸ‰
πŸ™…β†ͺ️ πŸ’ŠπŸ• the_action❓ πŸ‡

πŸ’­ Cure pet
πŸ’ŠπŸ‡πŸ—Ί the_action ❗
πŸ‰
πŸ™…β†ͺ️ πŸ§ΌπŸ• the_action❓ πŸ‡

πŸ’­ Clean pet
πŸ§ΌπŸ‡πŸ—Ί the_action ❗
πŸ‰
πŸ™…β†ͺ️ the_action πŸ™Œ πŸ”€πŸ‘‹πŸ”€ πŸ‘ the_action πŸ™Œ πŸ”€statusπŸ”€ πŸ‡

πŸ’­ Display pet status
πŸ“ŠπŸ‡πŸ—Ίβ—οΈ
πŸ‰
πŸ™…β†ͺ️ the_action πŸ™Œ πŸ”€πŸ”πŸ”€ πŸ‘ the_action πŸ™Œ πŸ”€helpπŸ”€ πŸ‡

πŸ’­ Display help
πŸ˜€ πŸ”€termanimal usage:πŸ”€ ❗️
πŸ˜€ πŸ”€ :food_emoji: feed pet πŸ”€ ❗️
πŸ˜€ πŸ”€ :activity_emoji: play with pet πŸ”€ ❗️
πŸ˜€ πŸ”€ :cure_emoji: cure pet πŸ”€ ❗️
πŸ˜€ πŸ”€ :clean_emoji: clean pet πŸ”€ ❗️
πŸ˜€ πŸ”€ πŸ‘‹, status display pet info πŸ”€ ❗️
πŸ˜€ πŸ”€ πŸ–Š, adopt adopt a pet πŸ”€ ❗️
πŸ˜€ πŸ”€ πŸ”, help display this πŸ”€ ❗️
πŸ‰
πŸ™… πŸ‡

πŸ˜€ πŸͺπŸ”€Your pet didn't understand `πŸ”€ the_action πŸ”€`πŸ”€πŸͺ ❗️
πŸ˜€ πŸͺ🧬 pet ❗️ πŸ”€ didn't understood `πŸ”€ the_action πŸ”€`πŸ”€πŸͺ ❗️
πŸ˜€ πŸ”€Run `termanimal (πŸ”|help)` for a list of commandπŸ”€ ❗️
πŸ‰
πŸ‰
πŸ™…πŸ‡
Expand All @@ -62,7 +85,13 @@

πŸ”€πŸ”€ ➑️ πŸ–πŸ†• emotion

β†ͺ️ πŸ• pet ❗️ πŸ™Œ 4 🀝 πŸ₯ pet ❗️ πŸ™Œ 4 πŸ‡
β†ͺ️ 🌑 pet ❗️ πŸ™Œ 1 πŸ‡
πŸ”€πŸŒ‘πŸ”€ ➑️ πŸ–emotion
πŸ‰
πŸ™…β†ͺ️ πŸ‚ pet ❗️ πŸ™Œ 1 πŸ‡
πŸ”€πŸ‚πŸ”€ ➑️ πŸ–emotion
πŸ‰
πŸ™…β†ͺ️ πŸ• pet ❗️ πŸ™Œ 4 🀝 πŸ₯ pet ❗️ πŸ™Œ 4 πŸ‡
πŸ”€πŸ˜‹πŸ”€ ➑️ πŸ–emotion
πŸ‰
πŸ™…β†ͺ️ πŸ• pet ❗️ πŸ™Œ 0 🀝 πŸ₯ pet ❗️ πŸ™Œ 0 πŸ‡
Expand Down Expand Up @@ -112,4 +141,14 @@
❓πŸ₯ str πŸ”‘ ➑️ πŸ‘Œ πŸ‡
↩️ ❎ πŸ€·β€β™‚οΈ πŸ™Œ πŸ” πŸ₯πŸ‡πŸ˜€β—️ str❗️❗️
πŸ‰

πŸ’­ Check if a grapheme is cure emoji
β“πŸ’Š str πŸ”‘ ➑️ πŸ‘Œ πŸ‡
↩️ ❎ πŸ€·β€β™‚οΈ πŸ™Œ πŸ” πŸ’ŠπŸ‡πŸ˜€β—οΈ str❗️❗️
πŸ‰

πŸ’­ Check if a grapheme is clean emoji
β“πŸ§Ό str πŸ”‘ ➑️ πŸ‘Œ πŸ‡
↩️ ❎ πŸ€·β€β™‚οΈ πŸ™Œ πŸ” πŸ§ΌπŸ‡πŸ˜€β—οΈ str❗️❗️
πŸ‰
πŸ‰

0 comments on commit 9afed65

Please sign in to comment.