Skip to content

Latest commit

 

History

History
84 lines (54 loc) · 1.56 KB

README.md

File metadata and controls

84 lines (54 loc) · 1.56 KB

Triangle Calculator

A triangle calculator that determines if three sides make a triangle

Originally, this was developed in C++ in my college years. It has now developed into a project in the programming language Lua. You can use C++ with the latests v2.0.2-stable if you want or use the latest version with Lua.

Prerequisites

Before downloading this program you should have the following things installed depending on how you want to use this program.

  • Lua 5.1 or higher

Installation

  1. Clone the repository:
git clone https://github.com/Robert-Walker0/Triangle-Calculator.git
  1. Navigate to your project directory:
cd Triangle-Calculator

Uninstalling

Windows

  1. Delete the project directory:
rmdir "Triangle-Calculator" /s /q

Linux

  1. Delete the project directory:
rm -rf "Triangle-Calculator"

Usage

To use the triangle calculator, run the commands below and follow the prompts afterwards.

Lua Version

Windows

cd .\src\lua
lua main.lua

Linux

cd src/lua
lua main.lua

Older Version using C++

  • C++14 or higher is required for older versions

Use something like this to run it. The slashe

Note: The source file is in src/cpp

# Building for Windows

g++ src\cpp\main.cpp -o bin\main
bin\main

# Building for Linux

g++ src/cpp/main.cpp -o bin/main
bin/main

Contributing

Contributers are always welcome here! Please feel free to submit a pull request or open an issue on this project.

Please open an issue before submitting a pull request.