mirror of
https://github.com/seigler/rockstar-playground
synced 2025-07-26 01:06:10 +00:00
Day 2
This commit is contained in:
parent
fd48cc6d9b
commit
8a6496352c
3 changed files with 1078 additions and 5 deletions
|
@ -1,6 +1,38 @@
|
|||
Rock Input
|
||||
Part One Total is 0
|
||||
Part Two Total is 0
|
||||
Listen to Line
|
||||
Until Line is gone
|
||||
Rock Input with Line
|
||||
Cut Line with " "
|
||||
Cut Line at 0 into Numbers with "-"
|
||||
Cut Line at 1 into Letter
|
||||
Let Letter be Letter at 0
|
||||
Cut Line at 2 into Password
|
||||
Let One be Numbers at 0
|
||||
Cast One
|
||||
Let Two be Numbers at 1
|
||||
Cast Two
|
||||
Let Charnum be 0
|
||||
Let Part One Counter be 0
|
||||
Let Part Two Counter be 0
|
||||
Until Charnum is Password
|
||||
Let Check be Letter is Password at Charnum
|
||||
If Check
|
||||
Build Part One Counter up
|
||||
(end if)
|
||||
If Charnum is One minus 1 or Charnum is Two minus 1
|
||||
If Check
|
||||
Build Part Two Counter up
|
||||
(end if)
|
||||
(end if)
|
||||
Build Charnum up
|
||||
(end until)
|
||||
If One is as low as Part One Counter and Part One Counter is as low as Two
|
||||
Build Part One Total up
|
||||
(end if)
|
||||
If Part Two Counter is 1
|
||||
Build Part Two Total up
|
||||
(end if)
|
||||
Listen to Line
|
||||
(end until)
|
||||
Say "Part one: " with Part One Total
|
||||
Say "Part two: " with Part Two Total
|
||||
|
|
44
lyrics/2020-02.rock
Normal file
44
lyrics/2020-02.rock
Normal file
|
@ -0,0 +1,44 @@
|
|||
Hate is 0
|
||||
Love is 0
|
||||
Let the moment be Love
|
||||
Your story is 1
|
||||
The past is 2
|
||||
Listen to history
|
||||
Discernment is aaa bb
|
||||
Hyphen is aaaa bbbbb
|
||||
Cast Discernment
|
||||
Cast Hyphen
|
||||
Until history is empty
|
||||
Cut history with Discernment
|
||||
Cut history at the moment into Numbers with Hyphen
|
||||
Cut history at your story into Letter
|
||||
Let Letter be Letter at the moment
|
||||
Cut history at the past into Password
|
||||
Let One be Numbers at the moment
|
||||
Cast One
|
||||
Let Two be Numbers at your story
|
||||
Cast Two
|
||||
Let Charnum be the moment
|
||||
Let Part One Counter be the moment
|
||||
Let Part Two Counter be the moment
|
||||
Until Charnum is Password
|
||||
Let Check be Letter is Password at Charnum
|
||||
If Check
|
||||
Build Part One Counter up
|
||||
(end if)
|
||||
If Charnum is One minus your story or Charnum is Two minus your story
|
||||
If Check
|
||||
Build Part Two Counter up
|
||||
(end if)
|
||||
(end if)
|
||||
Build Charnum up
|
||||
(end until)
|
||||
If One is as low as Part One Counter and Part One Counter is as low as Two
|
||||
Build Hate up
|
||||
(end if)
|
||||
If Part Two Counter is your story
|
||||
Build Love up
|
||||
(end if)
|
||||
Listen to history
|
||||
(end until)
|
||||
Say Hate with Discernment with Love
|
1003
music/2020-02.txt
1003
music/2020-02.txt
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue