Skip to content

A Game of Life implementation written in C with extra language constraints

License

Notifications You must be signed in to change notification settings

T-X/gameoflife-mini-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gameoflife-mini-c

A Game of Life implementation written in C with extra language constraints

Goals:

  • Experimenting how much C syntax could be thrown overboard while still having a Turing complete language :).
  • Exploring the power of C pointers :D

Constraints:

  • No 'if', 'else', 'elseif', 'switch' etc.
  • No 'while', 'for', 'foreach' etc.
  • No '&&', '||', '!'
  • No 'goto'
  • No '?'-Operator
  • No guards (not available in C anyway)
  • No external API

Note:

This Game-Of-Life implementation so far is totally incomplete, of course! However the way loops and checks are performed in the test functions should give a hint on how Turing completeness still holds with these constraints.

How to Run:

$ make
$ ./gol
$ echo $?

This outputs 0 if all tests have passed, 1 otherwise.

About

A Game of Life implementation written in C with extra language constraints

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published