GithubHelp home page GithubHelp logo

prolog-isolation-checker's Introduction

prolog-isolation-checker

Should you be self-isolating right now? You could check using the government's website*, but that would be boring - check by seeing if Prolog can satisfy the fact that you should be self-isolating.

* jokes aside, please do use the government's website. This tool is for entertainment only and is probably broken, I haven't written any Prolog since university.

Usage

You'll need to have Prolog installed. If you use nix, just run nix-shell in the root of the repo.

$ swipl should_i_isolate.pl

Then enter should_isolate(your_name)., and Prolog will try and prove your query. Example run:

?- should_isolate(james).
Has james got a high temperature (above 38 degrees celsius)? [y/n]
Has james got a continuous cough (coughing a lot for more than an hour, or 3 or more coughing episodes in the last 24 hours)? [y/n]
Has james lost their taste? [y/n]
Has james experienced any change in their taste? [y/n]
Has james tested positive for coronavirus within the last 10 days? [y/n]
Does james live with other people? [y/n]
Is james in a childcare or support bubble? [y/n]
Has anyone in james's bubble got a high temperature (above 38 degrees celsius)?  [y/n]
Has anyone in james's bubble got a continuous cough (coughing a lot for more than an hour, or 3 or more coughing episodes in the last 24 hours)? [y/n]
Has anyone in james's bubble lost their taste? [y/n]
Has anyone in james's bubble experienced any change in their taste? [y/n]
Has james been in close contact with the symptomatic person since 48 hours before their symptoms started? [y/n]
Has anyone in james's bubble tested positive for coronavirus within the last 10 days? [y/n]
Has james been in close contact with the positive person since 48 hours before their test was performed? [y/n]
true

prolog-isolation-checker's People

Contributors

jamespwilliams avatar

Stargazers

Kamil Adam avatar Ayush Kumar avatar Christian W. avatar Cem Turan avatar Michael Salaverry avatar  avatar 爱可可-爱生活 avatar Lucas Domanico avatar Peyton Randolph avatar Fed avatar Shingo Onobori avatar Lei Zhang avatar Spencer Pogorzelski avatar Jesse Talavera avatar Aditya Rachman Putra avatar Pete Vilter avatar Burin avatar Jack McPherson avatar Mars Buttfield-Addison avatar  avatar Raphaël Deknop avatar  avatar 49fl avatar Stelios Georgiou avatar Glenn Jahnke avatar Adam Gibson avatar  avatar James Milne avatar Marcello Seri avatar  avatar  avatar  avatar increpare avatar Owen Corrigan avatar

Watchers

evandrix avatar James Cloos avatar Kamil Adam avatar  avatar  avatar

prolog-isolation-checker's Issues

Improve readme by showing y/n responses

So nice to see some practical prolog. Thanks for sharing. The transcript in the readme gives a good idea of how it works, but it would be great if it also showed what answers you provided to each question.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.