Sista v3.0.0-alpha.1
Sista is a C++ lightweight OS-agnostic library for terminal animations and videogames
|
A demo of the SwappableField class from the Sista library. More...
#include <chrono>
#include <thread>
#include <iostream>
#include <vector>
#include "include/sista/sista.hpp"
Macros | |
#define | TEST_SIZE 42 |
Functions | |
int | main () |
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.
#define TEST_SIZE 42 |
int main | ( | ) |