https://github.com/xorz57/piapproximation
Pi Approximation written in C++17
https://github.com/xorz57/piapproximation
cpp cpp17 monte-carlo-integration monte-carlo-simulation pi-approximation sfml
Last synced: over 1 year ago
JSON representation
Pi Approximation written in C++17
- Host: GitHub
- URL: https://github.com/xorz57/piapproximation
- Owner: xorz57
- License: mit
- Created: 2023-09-03T14:15:34.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-17T09:09:52.000Z (over 2 years ago)
- Last Synced: 2024-03-17T10:26:16.001Z (over 2 years ago)
- Topics: cpp, cpp17, monte-carlo-integration, monte-carlo-simulation, pi-approximation, sfml
- Language: C++
- Homepage: https://xorz57.github.io/PiApproximation
- Size: 188 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# PiApproximation
[](https://github.com/xorz57/PiApproximation/actions/workflows/Build.yml)
[](https://sonarcloud.io/summary/new_code?id=xorz57_PiApproximation)

## Dependencies
- [SFML](https://github.com/SFML/SFML)
- [ImGui-SFML](https://github.com/SFML/imgui-sfml)
## How to Build
#### Linux & macOS
```bash
git clone https://github.com/microsoft/vcpkg.git ~/vcpkg
~/vcpkg/bootstrap-vcpkg.sh
git clone https://github.com/xorz57/PiApproximation.git
cd PiApproximation
cmake -B build -DCMAKE_BUILD_TYPE=Release -S . -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build --config Release
ctest --build-config Release
```
#### Windows
```powershell
git clone https://github.com/microsoft/vcpkg.git C:/vcpkg
C:/vcpkg/bootstrap-vcpkg.bat
C:/vcpkg/vcpkg.exe integrate install
git clone https://github.com/xorz57/PiApproximation.git
cd PiApproximation
cmake -B build -DCMAKE_BUILD_TYPE=Release -S . -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build --config Release
ctest --build-config Release
```