GithubHelp home page GithubHelp logo

tubbz-alt / prolog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from exercism/prolog

0.0 0.0 0.0 155 KB

Exercism exercises in Prolog.

Home Page: http://exercism.io/languages/prolog

License: MIT License

Shell 5.45% Perl 0.05% Prolog 94.46% Raku 0.03%

prolog's Introduction

Exercism Prolog Track

build status

Exercism Exercises in Prolog

Setup

See INSTALLATION.md

Contributing

Thank you so much for contributing! ๐ŸŽ‰

We welcome pull requests that provide fixes and improvements to existing exercises. If you're unsure, then go ahead and open a GitHub issue, and we'll discuss the change.

Please keep the following in mind:

  • Please start by reading the general Exercism contributing guide.

  • Pull requests should be focused on a single exercise, issue, or change.

  • We welcome changes to code style, and wording. Please open a separate PR for these changes if possible.

  • Please open an issue before creating a PR that makes significant (breaking) changes to an existing exercise or makes changes across many exercises. It is best to discuss these changes before doing the work.

  • Watch out for trailing spaces, extra blank lines, and spaces in blank lines.

  • Each exercise must stand on its own. Do not reference files outside the exercise directory. They will not be included when the user fetches the exercise.

  • Please do not add a README or README.md file to the exercise directory. The READMEs are constructed using shared metadata, which lives in the exercism/x-common repository.

  • Each problem should have a test suite, an example solution, and a template file for the real implementation. The example solution should have the .example file extension.

  • Each test file should have code like the following at the top of the file. This allows the tests to be run on CI and configures tests to be skipped with the condition(pending) flag.

pending :-
    current_prolog_flag(argv, ['--all'|_]).
pending :-
    write('\nA TEST IS PENDING!\n'),
    fail.
  • All but the initial test for each exercise should becondition(pending). The first test should have condition(true) as an example of how to change the tests to run. Here are the first two tests in the hello_world exercise.
test(hello_world, condition(true)) :-
    hello_world('Hello World!').

test(hello_world_with_a_name, condition(pending)) :-
    hello_world('Alice', 'Hello Alice!').

All the tests for Exercism Prolog Track exercises can be run from the top level of the repo with bin/build.sh. Please run this command before submitting your PR.

SWI Prolog icon

The SWI Prolog "Owlie" logo is owned by the SWI Prolog maintainers and released under the Simplified BSD license. We have adapted it for use on Exercism, changing the colour scheme, with the express permission of [email protected].

prolog's People

Contributors

alzafacon avatar average-user avatar catb0t avatar chellbell avatar erikschierboom avatar heneryville avatar jackhughesweb avatar jesperp avatar mbramson avatar neenjaw avatar parkerl avatar phlummox avatar qjd2413 avatar sshine avatar urbanautomaton avatar

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.