Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guywaldman/pl_ex6_tests
https://github.com/guywaldman/pl_ex6_tests
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/guywaldman/pl_ex6_tests
- Owner: guywaldman
- Created: 2017-06-25T02:12:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-27T19:28:54.000Z (over 7 years ago)
- Last Synced: 2023-11-29T23:37:31.829Z (about 1 year ago)
- Language: Prolog
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tests for ex6 // PL 234319
## New to GitHub?
Download this Repository (big green button) and follow the instructions in this _README_.
---
## Prolog
1. Copy `ex6.pl` inside the root directory of this Repo.
2. Run `test_rc.pl` with SWI-Prolog. In a BASH terminal: `swipl < test_rc.pl`> **Note**: Some of the tests for `solve\4` are for 9x9 boards, so in case your tests hang for too long, consider removing some tests for `solve\4` (in the end of `test.pl`).
## Python (Dry ex3)
You don't have to, but if you wish to test your Python generator to solve the Frog Riddle:
1. Copy your Python script, named `frog.py` inside the `/python` directory in this Repo.
1. Make sure that your generator is named `frog()` solely for this test.
1. From the root directory, run: `python python/frog.test.py`.> The test checks that you guess correctly, for all natural numbers in the range \[-100, 100\]. Please notice that after a particular amount of tries (100,000 as default), the test will fail. Depending on your algorithm, you may try adjusting the constants.
---
Good luck!