Terminal automaton is cellular automaton in your terminal, specifically Conway’s game of life. it is based in c++ and uses ftxui for rendering the game to the terminal.
Uses copilot inline suggestions.
Terminal automaton is cellular automaton in your terminal, specifically Conway’s game of life. it is based in c++ and uses ftxui for rendering the game to the terminal.
Uses copilot inline suggestions.
I built Conway’s Game of life in the terminal using ftxui to render it. In the beginning everything was hard since I don’t know a lot of c++ but then it got easier as I learnt more. I am most proud of my dead row / column skipping which skips any inactive rows leading to a massive performance boost,
I implemented a few more optimizations. I now check both rows and columns for activity and skip over any empty ones to increase performance, I also added some better UI and a readme. This has been very fun to make and I’m probably going to add some user settings later, but right now it is getting close to the deadline and I need to get the optimization sidequest done.
Log in to leave a comment
I just got done making the actual game of life in the terminal. I used ftxui for rendering and bitboards for keeping track of the cells at a low memory cost, roughly 8 times less memory then a array of bools. for every iteration I go through all spaces on the board and apply the rules to Conway’s game of life.
The video shows the Gosper glider gun being simulated in my terminal.
Log in to leave a comment