Jump to content

Search the Community

Showing results for tags 'logic'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 4 results

  1. I'm trying to sort through the logic behind creating a user-defined workflow, that is dynamic based on the user's decision/choices as well as the options that they pre-defined. Obviously since the user is inputting their own options, messages, and questions; it is not as easy as simply checking the conditions based on the questions, because I will not know what conditions exist on a specific question. So basically, I brainstormed and came up with this logic. Can anyone confirm if this logic is accurate or demonstrate a better method? Database Structure: Main Table: [LIST] [*]INT | id | AI [*]VAR_CHAR | title | NULL [*]INT | type | NULL [*]INT | stage | NULL [*]INT | points | NULL [/LIST] Type Table: [LIST] [*] (INT) id, VAR_CHAR (type) [*] 1 - Question [*] 2 - Option [*] 3 - Message [/LIST] So with this logic, every possible option of a workflow has been abstracted to a core value base: The id, which is the reference value to the database table. The title, the description of the option, the final output message, or the question being asked. The type, what type of entity we are dealing with The stage, specific step within the specific question loop The reference, which question/option the entity relates to The 'points', the next stage/option/entity So the flow would appear like this: [IMG]http://i.imgur.com/hJc2MyO.png[/IMG] Oh yeah, I forgot to mention this is for a service question step-through application. The questions are just bull-shit, I needed examples to play with. #5 & #9 are the same entity but a duplicate entry. Although this isn't what I want, it makes sense to point to a new entity base for different questions. The problem occurs after the point of the split though, because you could have duplicated logic for each entity, with staging. So it could be: 10 - Is it blue? 10->12 11 - Is it blue? 11->13 12 - Does it turn? 13 - Does it turn? And so on. So assistance where it can be advised. I appreciate feed back! -------------------------------------------------- EDIT: If I reference the entity not to the choice, but to the higher original reference point, I could completely avoid the conflict split. Although that means square one if the option has to go back. So that means: Question 1 - Option 1 Option 1 -> Question 2 - Option 2 Option 2 -> Question 3 Question 2: - Option 1 Option 1 -> Question 3 - Option 2 Option 2 -> Output Result 1 Question 3: - Option 1 Option 1 -> Question 4 - Option 2 Option 2 -> Output Result 2 So if you had to reverse your decision at any point after Question 1, it would go back to the first reference of the stage, which in this case is Question 1, since it links to the highest level. But, if there was a single choice that split after Question 1, the options below would link to that set point.
  2. cboy676

    Logic

    So, lets sum it up. A school had a protest due to Bill 115 and teachers doing work-to-rule. It worked, they got sports and clubs back but only [b]students[/b] can run it. Oh well, so I posted simple logical answers and this bitch starts calling me fat, ect. for proving her wrong, next she starts threatening me over Facebook about her "getting people to come beat me up", we lets be honest here. She is a whore and shes greedy, she claims shes "god" because of those reasons. So, by using basic logic she gets pissy. Things like stating "even though we have one thing back, does not mean the teachers won't lash out at people, get pissy and start all this sort of shit and also the gov. won't care. The bill 115 was passed. They won't get rid of it" so, long story short it will be interesting day Monday. What do you think?
  3. Glen

    Logic

    I need help with this homework problem o.o Don't hate / flame / troll / bullshit <3 1. In the negation of a conjunction, ~(p ^ q), the same as ~p ^ ~q? Justify your answer. 2. What must be the truth values of p, q and r in order for (p ^ q) ^ r to be true? Explain your answer. Any help appreciated :)
  4. Can someone please explain to me why this is wrong? [CODE]public boolean makeBricks(int small, int big, int goal) { int inch = big*5; if(goal >= inch) return(goal-inch <= small); else return(small >= goal || (goal-small)%5 == 0); }[/CODE] the problem can be found at [url]http://codingbat.com/prob/p183562[/url]
×