Skip to content

dmfrodrigues/feup-iart-proj1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IART project 1

License: GPL v3 License: CC BY-NC-ND 4.0

build report1 report2 docs

Based on game Ball Sort Puzzle by Spica Game Studio.

Get this project

Setup

On Microsoft Windows, (as always) things don't just work out-of-the-box.

This project uses ASCII color codes, which are not enabled on some versions of Windows by default.

cmd/PowerShell

If colors don't properly render, try running the following command in cmd as administrator so that cmd can correctly interpret ASCII colors (source):

reg add HKEY_CURRENT_USER\Console /v VirtualTerminalLevel /t REG_DWORD /d 0x00000001 /f

and open a new cmd (not required to be administrator) to run with correct color rendering. Worked for me on Windows 10.

Visual Studio Code integrated terminal (cmd/PowerShell)

Add the following line to .vscode/settings.json:

"terminal.integrated.windowsEnableConpty": false

and open a new integrated terminal to run with correct color rendering and avoid garbage being printed.

Compile

This project uses CMake, to compile the project run

mkdir build
cd build
cmake ..
cmake --build .

The executable is called main and will be placed in the root of the repository.

To run it in interactive mode, just run ./main; for the CLI mode, run ./main cli to check the possible options.

License

© 2021 Diogo Rodrigues, Rafael Ribeiro, Bernardo Ferreira

All files are licensed under GNU General Public License v3 by © 2021 Diogo Rodrigues, Rafael Ribeiro, Bernardo Ferreira, to the exception of: