Hacker News new | past | comments | ask | show | jobs | submit login

There actually is a similar flowchart in a linked article. https://www.theguardian.com/politics/2019/mar/08/the-brexit-...



  void choices()
  {
    if(uk_MPs_yes_vote(12_march))
    {
      brexit(29_march[current_deal]);
    }
    else if(uk_MPs_yes_vote(13_march))
    {
      brexit(29_march[no_deal]);
    }
    else if(uk_MPs_yes_vote(14_march))
    {
      if(EU_yes_vote(21_march))
      {
        brexit(extension_date);
      }
    }
    else if(uk_MPs_yes_vote(22_to_29_march))
    {
      brexit(29_march[current_deal]);
    }
    else
    {
      brexit(1/0);
    }
  }


Thanks, that's better than my code. It has a logical flaw though, I think. It says "UK asks for a short extension" and then the EU leaders magically could decide to "No to short, but yes to longer extension". I don't know if this is a serious possibility or just wishful thinking...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: