Skip to content

Experimental cellular automata written in Cpp2 Syntax (cppfront)

License

Notifications You must be signed in to change notification settings

zyperpl/MNCACpp2Syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++2 Syntax Experiment Project - Multiple Neighborhoods Cellular Automata

animation

Description

Simple proof-of-concept / learning project of a visualization of multiple neighborhoods cellular automata (MNCA) written in experimental Cpp2 Syntax (designed by Herb Sutter).

It utilises custom immediate mode UI, basic multithreading simulation, embedding data in Cpp2 files and visualisation using Raylib as a drawing library.

Dependencies

  • Any popular C++20 compiler
  • GNU make
  • Git

Build

make

Build manually

  1. Compile cppfront (commit hash d59ef7c).
  2. Translate and compile utils/file2cpp2.cpp2 tool and use it to package fonts from resources/ into a src/font_data.h2 file.
  3. Translate and compile .h2 and .cpp2 files from src/ directory.
  4. Link compiled objects together with Raylib 5.0 library.

Run

./mnca

Screenshots

Screenshot 3Screenshot 4 Screenshot 5Screenshot 6

License

MIT License (see LICENSE file)

About

Experimental cellular automata written in Cpp2 Syntax (cppfront)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published