Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Outline

Reverse Conway's Game of Life

About

This program takes a state of game of life and tries to find it's initial state.

Input-output example

Input

4 5 10
....*
..*.*
.*..*
..*.*

Output

..*.*
...**
**.**
*....

Note that it can be more than one initial state, it just outputs one of them.

How to build it?

You can use bazel:
$ bazel build //:main --cxxopt='-std=c++17'
and run it with the following command:
$ ./bazel-bin/main 

How to test it?

You can use bazel:
$ bazel test tests:test --cxxopt='-std=c++17'

How it works?

Right now it uses brute-force approach to achieve the solution. It generates all possible states and evolve them to find out witch one reach the given state.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.