Computer Science Canada

Y R We Here? II : The application.

Author:  codemage [ Tue Nov 29, 2005 1:23 pm ]
Post subject:  Y R We Here? II : The application.

That's right. The much-anticipated application spawned off by the now infamous, almost-longest, admin-locked debate.

Only the basest attempt at any form of political / theological / coding correctness here. This may be an eye-opener for some of you. Best of luck.



code:
%100 years in purgatory sounds about right for any non-saint.
var years, indulgence, menu : real := 100

loop
    cls
    if years < 0 then
        years := 0
    end if
    put "Welcome to the *Y R We Here* Medieval Catholic Calculator"
    put "Please select an option from the menu:"
    put ""
    put "(Current years in purgatory : ", years, ")"
    put ""
    put "1 - Achieve Sainthood"
    put "2 - Donate money / pay for indulgence"
    put "3 - Record Good Deed"
    put "4 - Record minor sin (jaywalking, white lies)"
    put "5 - Record major sin (ask for someone on CompSci to do your assignments."
    put "6 - Record deadly sin (pride, slot, greed, etc.)"
    put "7 - Exit / Convert from Catholicism."
    put ""
    put "Your choice, oh lowly one :" ..
    get menu

    if menu = 7 then
        if years > 5000 then
            put "See you in Hell.  (From heaven of course)."
        else
            put "See you in the afterlife."
        end if
        exit
    elsif menu = 1 then
        put "Good for you.  Say hi to St. Pete for me."
        years := 0
    elsif menu = 2 then
        put "How much money are you donating?" ..
        get indulgence
        put "God says, \"I see your ", indulgence, " dollars, and I smite down "
        indulgence := indulgence / 100000 * Rand.Int (80, 120)
        put indulgence, " years of purgatory."
        years := years - indulgence
    elsif menu = 3 then
        put "That's not as nice as a big beefy indulgence... but it'll save"
        put "you a bit of time in limbo."
        years := years - 1
    elsif menu = 4 or menu = 5 or menu = 6 then
        put "You wicked, wicked monkey.  I hope you can afford to pay for that."
        years := years + (menu / 6) * 5
    else
        put "How does a year in purgy sound for not picking a proper option?"
        years := years + 1
    end if
    delay (2500)
end loop

Author:  Dan [ Tue Nov 29, 2005 2:00 pm ]
Post subject: 

I love it =p

Epsalty how you have to buy your way out of hell.

Author:  ZeroPaladn [ Tue Nov 29, 2005 2:33 pm ]
Post subject: 

SWEET! im in hell for 3000 years! Rolling Eyes

Author:  wtd [ Tue Nov 29, 2005 8:02 pm ]
Post subject: 

Ruby port. Wink

code:
years = 100

loop do
   years = 0 if years < 0
   puts <<MENU
Welcome to the *Y R We Here* Medieval Catholic Calculator
Please select an option from the menu:

(Current years in purgatory : #{years})

1 - Achieve Sainthood
2 - Donate money / pay for indulgence
3 - Record Good Deed
4 - Record minor sin (jaywalking, white lies)
5 - Record major sin (ask for someone on CompSci to do your assignments.
6 - Record deadly sin (pride, slot, greed, etc.)
7 - Exit / Convert from Catholicism.

MENU
   print "Your choice, oh lowly one: "
   choice = gets.to_i

   case choice
      when 7
         if years > 5000
            puts "See you in Hell.  (From heaven of course)."
         else
            puts "See you in the afterlife."
         end
         exit
      when 1
         puts "Good for you.  Say hi to St. Pete for me."
         years = 0
      when 2
         print "How much money are you donating?"
         indulgence = gets.to_i
         puts "God says, \"I see your #{indulgence} dollars, and I smite down "
         indulgence /= 100000 * (rand * 40 + 80).to_i
         puts "#{indulgence} years of purgatory."
         years -= indulgence
      when 3
         puts "That's not as nice as a big beefy indulgence... but it'll save"
         puts "you a bit of time in limbo."
         years -= 1
      when 4, 5, 6
         puts "You wicked, wicked monkey.  I hope you can afford to pay for that."
         years += (menu / 6) * 5
      else
         puts "How does a year in purgy sound for not picking a proper option?"
         years += 1
   end
   
   sleep 2500
end

Author:  jrblast [ Tue Nov 29, 2005 11:18 pm ]
Post subject: 

muahahaha, i will be seen in hell from heaven Razz

fun game Very Happy humourous comments...monkey...paintbrush *takes a long walk off a short cliff* lol

Author:  WhatDotColourMaster [ Mon Dec 05, 2005 5:26 pm ]
Post subject: 

Very Unique and FUNNY!!! Good Creativity???!!!

Author:  do_pete [ Tue Dec 06, 2005 10:53 am ]
Post subject: 

I wonder what sylvester would say if he saw this Very Happy

Author:  Tony [ Tue Dec 06, 2005 10:56 am ]
Post subject: 

no worries, this is hidden all the way in [Turing Source Code] Laughing

Author:  codemage [ Tue Dec 06, 2005 12:09 pm ]
Post subject: 

The title line has it covered:
code:
%Medieval Catholic Calculator

It's present-day politically correct by presuming to be acurate historically.

Author:  Shyfire [ Tue Dec 06, 2005 2:28 pm ]
Post subject: 

i love this programe it the $#!+
u should make into an rpg LOL

Author:  md [ Tue Dec 06, 2005 8:22 pm ]
Post subject: 

fatboi wrote:
i love this programe it the $#!+
u should make into an rpg LOL

You Sir are a moron, years += infinity.

Author:  ZeroPaladn [ Wed Dec 07, 2005 10:01 am ]
Post subject: 

lolz fatboi. your damned for eterninty. say hi to satan for me.

Author:  sylvester-27 [ Wed Dec 07, 2005 5:36 pm ]
Post subject: 

i found it...its a good program but you shouldn't mock purgatory or God's method of selection of people going to either heaven or hell.

Author:  Tony [ Wed Dec 07, 2005 5:39 pm ]
Post subject: 

oh, we're not mocking anything... it's just a medieval tool that people used back then..

Author:  codemage [ Thu Dec 08, 2005 9:00 am ]
Post subject: 

That's actually pretty close to how they did it in the middle ages when the church was most corrupt.

They'd find out how many sins you had committed and give you a price that you could pay to erase them.

There are several well-documented examples where this process was available in reverse. In other words, you could tell a priest what sin you were about to commit, and he would sell you a license which would make that future sin not count against you.

The RC does it differently now, of course; and nobody can say what exact method the Christian God uses to determine afterlife status. The number of years that I picked for offenses are completely arbitrary.

Author:  Albrecd [ Sat Dec 10, 2005 3:08 pm ]
Post subject: 

While I do find it quite accurate to what I understand of the Catholic faith, I fail to see what it has to do with the topic of Creationism versus Evolution (Y R We Here, the application).

Author:  md [ Sat Dec 10, 2005 3:44 pm ]
Post subject: 

What does evolution vs. creationism have to do with "Y R We Here"?

Author:  Dan [ Sun Dec 11, 2005 1:23 pm ]
Post subject: 

Cornflake wrote:
What does evolution vs. creationism have to do with "Y R We Here"?


I ask that question in the orginal topic and no one awsered me Rolling Eyes

Author:  Albrecd [ Mon Dec 12, 2005 9:10 am ]
Post subject: 

Y R We here: Did we evolve, or were we created. Perhaps a better topic would have been: How did we get to our present state.

But I don't see what an application about Catholocism has to do with that topic.

Author:  Tony [ Mon Dec 12, 2005 9:52 am ]
Post subject: 

that topic was the insparational stimulus for this application Wink

Author:  md [ Mon Dec 12, 2005 1:06 pm ]
Post subject: 

Albrecd wrote:
Y R We here: Did we evolve, or were we created. Perhaps a better topic would have been: How did we get to our present state.


Whether we evolved or were created has nothing to do with why we are here, though your second topic does make more sense.

Besides, the program is awesome! Who cares what the title is... within reason...

Author:  Dan [ Mon Dec 12, 2005 1:25 pm ]
Post subject: 

Albrecd wrote:
Y R We here: Did we evolve, or were we created. Perhaps a better topic would have been: How did we get to our present state.

But I don't see what an application about Catholocism has to do with that topic.


it realy whould not be evolve or created if u ask it that way since the thereoy of evletion just talks about how we could have goten from small micro life forms to what we are now, it dose not say how the 1st ones came to be. Thous it whould have to be Did we evolve + somthing or were we created?

Author:  Tony [ Mon Dec 12, 2005 2:45 pm ]
Post subject: 

If you guys are going to continue on with the discussion, might as well reopen the original thread.

Author:  do_pete [ Mon Dec 12, 2005 4:06 pm ]
Post subject: 

I have a feeling this is going turn into another 15 page topic


: