All Projects → exercism → Prolog

exercism / Prolog

Licence: mit
Exercism exercises in Prolog.

Programming Languages

prolog
421 projects

Projects that are alternatives of or similar to Prolog

sml
Exercism exercises in Standard ML.
Stars: ✭ 21 (+16.67%)
Mutual labels:  exercism-track
common-lisp
Exercism exercises in Common Lisp.
Stars: ✭ 65 (+261.11%)
Mutual labels:  exercism-track
Java
Exercism exercises in Java.
Stars: ✭ 393 (+2083.33%)
Mutual labels:  exercism-track
x86-64-assembly
Exercism exercises in x86-64 Assembly.
Stars: ✭ 19 (+5.56%)
Mutual labels:  exercism-track
coq
Exercism exercises in Coq.
Stars: ✭ 15 (-16.67%)
Mutual labels:  exercism-track
perl5
Exercism exercises in Perl 5.
Stars: ✭ 25 (+38.89%)
Mutual labels:  exercism-track
clojure
Exercism exercises in Clojure.
Stars: ✭ 125 (+594.44%)
Mutual labels:  exercism-track
Rust
Exercism exercises in Rust.
Stars: ✭ 651 (+3516.67%)
Mutual labels:  exercism-track
d
Exercism exercises in D.
Stars: ✭ 14 (-22.22%)
Mutual labels:  exercism-track
Ruby
Exercism exercises in Ruby.
Stars: ✭ 381 (+2016.67%)
Mutual labels:  exercism-track
babashka
Exercism exercises in Babashka.
Stars: ✭ 12 (-33.33%)
Mutual labels:  exercism-track
nim
Exercism exercises in Nim.
Stars: ✭ 43 (+138.89%)
Mutual labels:  exercism-track
pharo-smalltalk
exercism.org/tracks/pharo-smalltalk
Stars: ✭ 24 (+33.33%)
Mutual labels:  exercism-track
emacs-lisp
Exercism exercises in Emacs Lisp.
Stars: ✭ 40 (+122.22%)
Mutual labels:  exercism-track
Elixir
Exercism exercises in Elixir.
Stars: ✭ 400 (+2122.22%)
Mutual labels:  exercism-track
vimscript
Exercism exercises in Vim script.
Stars: ✭ 19 (+5.56%)
Mutual labels:  exercism-track
groovy
Exercism exercises in Groovy.
Stars: ✭ 18 (+0%)
Mutual labels:  exercism-track
Lfe
Exercism exercises in Lisp Flavoured Erlang (LFE).
Stars: ✭ 17 (-5.56%)
Mutual labels:  exercism-track
Go
Exercism exercises in Go.
Stars: ✭ 547 (+2938.89%)
Mutual labels:  exercism-track
Haskell
Exercism exercises in Haskell.
Stars: ✭ 351 (+1850%)
Mutual labels:  exercism-track

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].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].