|
Course Work 2
1.0.0
Number Guessing Game
|
The Rust implementation of the library can be found here.
Cmake Cmake is used to compile the program. You can download cmake here.
After compilation a directory bin/ should be created in the repository. To run it, run the command with the word to print. The program will guide you on what to do.
This repository also provides a benchmark for the AI. It gets average number times it took the AI to guess a number from 1 to N and calculates the standard deviation. Then, it outputs the data into a csv for further processing.
The ai-benchmark takes in some arguments. It has the usage signature of:
However these are optional and defaults to certain values.
| Name | Description | Default |
|---|---|---|
| min | The minimum N to use. | 100 |
| max | The maximum N to use. | 5000 |
| step | How much should the program increase the N by after each iteration until it reaches max. | 100 |
| iteration | How many samples should the benchmark take for a given N. | 500 |
Documentation of the coursework can be found in the project GitHub pages.