Sista v3.0.0-alpha.1
Sista is a C++ lightweight OS-agnostic library for terminal animations and videogames
Loading...
Searching...
No Matches
Macros | Functions
sista.cpp File Reference

A demo of the SwappableField class from the Sista library. More...

#include <chrono>
#include <thread>
#include <iostream>
#include <vector>
#include "include/sista/sista.hpp"
Include dependency graph for sista.cpp:

Macros

#define TEST_SIZE   42
 

Functions

int main ()
 

Detailed Description

A demo of the SwappableField class from the Sista library.

This demo creates a SwappableField, adds several Pawns with different characters and colors, and moves them around the field in a loop, demonstrating the swapping functionality.

It compiles the Sista library included with the repository as described in the Makefile, and requires a terminal that supports ANSI escape codes.

Author
FLAK-ZOSO
Date
2022-2025
Version
3.0.0
See also
SwappableField
Field
Pawn
Border
Coordinates
ANSISettings

Macro Definition Documentation

◆ TEST_SIZE

#define TEST_SIZE   42

Function Documentation

◆ main()

int main ( )