+
Skip to content

ashfn/life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animation showing the code running

A simple conways game of life in c++, Swift, ObjC and Kotlin. I wanted to test out using braille characters to multiply the usable pixels by 8 (4 rows 2 columns)

Set MAP_SIZE in the files file and compile with:

C++

g++ life.cpp -o life

# then run with:
./life

Swift

swiftc -parse-as-library -O Life.swift -o life
./life

ObjC

clang -fobjc-arc -framework Foundation Life.m -o life
./life

Kotlin with JVM

kotlinc Life-jvm.kt -include-runtime -d life.jar
java -jar life.jar

Kotlin native

kotlinc-native Life-posix.kt -o life
./life.kexe

Make sure your terminal is big enough for the size.

About

A c++ implementation of Conway's game of life using braille characters to render the map

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载