An old challenge

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • YoshL
    Celestial Harbor
    FFR Simfile Author
    FFR Music Producer
    • Aug 2008
    • 6156

    #31
    Re: An old challenge

    4- The computer cannot receive orders to give answers in specific situations (the input has to be a statement, not an order or a question). Every answer depends on a previous knowledge of the computer. It also doesn't deal with hypothetical situations (for example, referencing a "false statement" without specifying the statement)

    my input was still a statement, not an order or a question. I simply said basically to do what alot of computers do already today, when they hit a part of the statement as false, then just end there. short circuit logic, it's pretty widely used


    Originally posted by Charu
    Only yours, for an easy price of $19.99! You too can experience the wonders of full motion rump sticking.

    Comment

    • Zaevod
      FFR Player
      • Apr 2013
      • 385

      #32
      Re: An old challenge

      Will check your solutions now, just a sec.
      https://soundcloud.com/zaevod/the-glimpse

      Comment

      • benguino
        Kawaii Desu Ne?
        • Dec 2007
        • 4185

        #33
        Re: An old challenge

        Originally posted by YoshL
        If the answer involves door X, then use "A" for true, and "B" for false.
        If the answer involves door Y, then use "C" for true, and "D" for false.
        If the answer involves door Z, then use "E" for true, and "F" for false.

        Append all characters for door involvement (if statement has X, and Y, then answer will be either AC or BD)

        Stop parsing the statement if any assumption in the statement is false. Treat the assumptions up to that point as the full statement. (including the false statement)
        This entire section is all orders however imho. You're telling the computer to do certain things according to your exact preferences and specifications.

        EDIT: Also, the way the question was posed made it seem like there were only two possible outputs, "true" or "false", such that any "true" would be indistinguishable from any other "true" and likewise for "false".
        Last edited by benguino; 08-6-2013, 08:43 AM.
        AMA: http://ask.fm/benguino

        Not happening now! Don't click to join!



        Originally posted by Spenner
        (^)> peck peck says the heels
        Originally posted by Xx{Midnight}xX
        And god made ben, and realized he was doomed to miss. And said it was good.
        Originally posted by Zakvvv666
        awww :< crushing my dreams; was looking foward to you attempting to shoot yourself point blank and missing

        Comment

        • YoshL
          Celestial Harbor
          FFR Simfile Author
          FFR Music Producer
          • Aug 2008
          • 6156

          #34
          Re: An old challenge

          we'll see lol


          Originally posted by Charu
          Only yours, for an easy price of $19.99! You too can experience the wonders of full motion rump sticking.

          Comment

          • Zaevod
            FFR Player
            • Apr 2013
            • 385

            #35
            Re: An old challenge

            Originally posted by YoshL
            doors x, y, z from left to right.
            assign different ways of saying true and false.
            If the answer involves door X, then use "A" for true, and "B" for false.
            If the answer involves door Y, then use "C" for true, and "D" for false.
            If the answer involves door Z, then use "E" for true, and "F" for false.
            Unfortunately, that's not possible, even if the rest is logically correct (haven't really check, as this part basically invalidates it). The two output messages are "true" or "false", and cannot be changed.
            https://soundcloud.com/zaevod/the-glimpse

            Comment

            • YoshL
              Celestial Harbor
              FFR Simfile Author
              FFR Music Producer
              • Aug 2008
              • 6156

              #36
              Re: An old challenge

              ah alright then that clears things up (sad)

              i liked my solution lol

              edit: thought of a way to get 3 answers
              Last edited by YoshL; 08-6-2013, 08:46 AM.


              Originally posted by Charu
              Only yours, for an easy price of $19.99! You too can experience the wonders of full motion rump sticking.

              Comment

              • Zaevod
                FFR Player
                • Apr 2013
                • 385

                #37
                Re: An old challenge

                Guise, pls.

                You're all very smart and creative, but there's no need to look for subterfuges to get to the solution. I added the rules specifically because people always try to include possibilities that are beyond the original scope of the problem. Believe me, with the right combination of labels and logical predicates, there is an infinite number of direct statements which will give the desired outcome (infinite because the possible labels are infinite, that is).
                https://soundcloud.com/zaevod/the-glimpse

                Comment

                • Reincarnate
                  x'); DROP TABLE FFR;--
                  • Nov 2010
                  • 6332

                  #38
                  Re: An old challenge

                  Elaborate pt #4 plox. Sounds way too vague to be useful -- what exactly do you mean by this?

                  If the computer is only answering "true" or "false" then clearly the input must be a declaration (i.e. a statement) since that's the only way truth value can be assessed ("Stacy is a bitch", "If I go to school tomorrow, I will trip on a banana peel," "The correct door is the middle one"), which is all fine and well. However:

                  "Every answer depends on a previous knowledge of the computer" What? You say the computer can predict, but its answers depend on previous knowledge?

                  "It also doesn't deal with hypothetical situations (for example, referencing a "false statement" without specifying the statement)" Again, what does this mean? Can you give an example?

                  IMO this problem is not well-formed yet and has a few internal inconsistencies that need to be ironed out in order for a meaningful answer to be extracted.

                  Is this sufficient:

                  Code:
                  The magical computer's subroutine:
                  
                  def answerMain(statement):
                  
                      if trueOrFalseStatement(statement):
                  
                          answer = getAnswer(statement) #getAnswer() returns 1 if true, 0 if false
                  
                          if bug(): #50% chance of being true
                              return 1-answer
                          else:
                  	    return answer
                  
                      else:
                  
                          print "You will now be flayed alive and pumped full of neurotoxin."
                          flay()
                          pumpNeurotoxin()
                          return fuck you++
                  
                  #Program written courtesy of GLaDOS and Ramsay Snow
                  Last edited by Reincarnate; 08-6-2013, 09:58 AM.

                  Comment

                  • MracY
                    FFR Veteran
                    • Oct 2007
                    • 284

                    #39
                    Re: An old challenge

                    Originally posted by TheSaxRunner05
                    Make it like "the cube" movie where 1 room is safe and the other two kill you painfully.
                    No, because that way you couldn't head back after checking out one of the rooms.

                    Comment

                    • YoshL
                      Celestial Harbor
                      FFR Simfile Author
                      FFR Music Producer
                      • Aug 2008
                      • 6156

                      #40
                      Re: An old challenge

                      doors x, y, z from left to right.

                      If the parsed statement involves door Y, then delay the answer by 5 seconds.
                      If the parsed statement involves door Z, then delay the answer by an additional 15 seconds.

                      Stop parsing the statement if any assumption in the statement is false. Treat the assumptions up to that point as the full statement. (including the false statement)

                      If door X leads to a boring place, and Y leads to a boring place, then Z is the awesome door.


                      this works :P short circuit logic. kkthxbye


                      Originally posted by Charu
                      Only yours, for an easy price of $19.99! You too can experience the wonders of full motion rump sticking.

                      Comment

                      • Zaevod
                        FFR Player
                        • Apr 2013
                        • 385

                        #41
                        Re: An old challenge

                        Originally posted by Reincarnate
                        Elaborate pt #4 plox. Sounds way too vague to be useful -- what exactly do you mean by this?

                        If the computer is only answering "true" or "false" then clearly the input must be a declaration (i.e. a statement) since that's the only way truth value can be assessed ("Stacy is a bitch", "If I go to school tomorrow, I will trip on a banana peel," "The correct door is the middle one"), which is all fine and well. However:

                        "Every answer depends on a previous knowledge of the computer" What? You say the computer can predict, but its answers depend on previous knowledge?

                        "It also doesn't deal with hypothetical situations (for example, referencing a "false statement" without specifying the statement)" Again, what does this mean? Can you give an example?

                        IMO this problem is not well-formed yet and has a few internal inconsistencies that need to be ironed out in order for a meaningful answer to be extracted.
                        Sorry, I'll try to be as clear as possible.

                        What number 4 means is that the only way to get an answer from the computer is by inputting a statement with verifiable values without including hypothetical things with values determined by the person, for example

                        "Considering that door 1 is labeled with something that exists, door 2 with something that doesn't exist and door 3 with something that may or may not exist, the label of the door that takes to the cool place exists"

                        That's just a way to prevent the final statement from being too trivial, because there is no challenge if you can just directly tell the computer to answer whatever you want in a determined situation. I guess the "previous knowledge" thing was a bit confusing, then. It just means that you have to use actual concepts and things in your statements instead of hypothetical things with values that you can attribute yourself and tell the computer. Of course, that alone doesn't solve the bug problem.

                        Originally posted by Reincarnate
                        Is this sufficient:

                        Code:
                        The magical computer's subroutine:
                        
                        def answerMain(statement):
                        
                            if trueOrFalseStatement(statement):
                        
                                answer = getAnswer(statement) #getAnswer() returns 1 if true, 0 if false
                        
                                if bug(): #50% chance of being true
                                    return 1-answer
                                else:
                        	    return answer
                        
                            else:
                        
                                print "You will now be flayed alive and pumped full of neurotoxin."
                                flay()
                                pumpNeurotoxin()
                                return fuck you++
                        
                        #Program written courtesy of GLaDOS and Ramsay Snow
                        Pretty much. Except that it does nothing in that last part. And, well, the way to solve the bug must be included in the statement, too.
                        Last edited by Zaevod; 08-6-2013, 10:14 AM.
                        https://soundcloud.com/zaevod/the-glimpse

                        Comment

                        • MracY
                          FFR Veteran
                          • Oct 2007
                          • 284

                          #42
                          Re: An old challenge

                          Originally posted by Zaevod
                          Guise, pls.

                          You're all very smart and creative, but there's no need to look for subterfuges to get to the solution. I added the rules specifically because people always try to include possibilities that are beyond the original scope of the problem. Believe me, with the right combination of labels and logical predicates, there is an infinite number of direct statements which will give the desired outcome (infinite because the possible labels are infinite, that is).
                          How boring.

                          Comment

                          • Zaevod
                            FFR Player
                            • Apr 2013
                            • 385

                            #43
                            Re: An old challenge

                            If I didn't add rules, people would just dictate the behavior of the computer in any way and there would be no real challenge, lol
                            https://soundcloud.com/zaevod/the-glimpse

                            Comment

                            • Reincarnate
                              x'); DROP TABLE FFR;--
                              • Nov 2010
                              • 6332

                              #44
                              Re: An old challenge

                              "2- It only has enough energy left for one answer;"

                              What dictates "one answer?"

                              e.g. "Your answer to question X is the same as your answer to question Y" = valid or invalid?

                              Comment

                              • Zaevod
                                FFR Player
                                • Apr 2013
                                • 385

                                #45
                                Re: An old challenge

                                Originally posted by Reincarnate
                                "2- It only has enough energy left for one answer;"

                                What dictates "one answer?"

                                e.g. "Your answer to question X is the same as your answer to question Y" = valid or invalid?
                                Valid. It means there will be only one "true" or "false" message in the end. It can calculate infinte values (which can include final answers from other statements that would be given in specific situations) but will only give one answer in the end.

                                Leaving to college now.
                                https://soundcloud.com/zaevod/the-glimpse

                                Comment

                                Working...