8000 GitHub - tavaresl/ProjectDugo
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

tavaresl/ProjectDugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Container

Made for OLC Codejam 2020

Fitting the theme "The Great Machine", in this game you take control of the rules of John Conway's Game of Life. Your goal is to save as many populations as possible before the countdown ends.

Even though we did not have any previous experience with C++, we decided to use it to develop the game so we could try the olcPixelGameEngine as well.

We hope you like it :)

How it works

We change some rules of the game on the run, but first remembering the original rules of Conway's Game of Life:

Any live cell with two or three live neighbours survives.
Any dead cell with three live neighbours becomes a live cell.
All other live cells die in the next generation. Similarly, all other dead cells stay dead.

So, we changed some rules to make it Controllable.

Movementation

Let's interpret the cell and interactions as this following visual

OOO
O@O
OOO

@ = Alive Cell
O = Identifying neighbours

In the case above, all neighbours is interpreted, that means the cell will grow to all 4 sides (if possible). So to make it goes Right for example, we removed the Left collumn identification, being like this:

&OO
&@O
&OO

& = Not Identifying neighbours

In this way, will only grow to the right. But this brings an outcome. The cells will die easier.

Less Deaths

In the original rules, you will need 3 alive neighbours to create a life.
So, to create more lifes, we thought that 2 neighbours to create a life should be enough to create more life than before.

Changing Neighbours N values (More Deaths)

In the rule Any live cell with 2 or 3 live neighbours survives, and you can change that rule by adding the minimum value to survive to 3 or lowering the maximum value to 2, causing more deaths.

Identifying more Neighbours

The neighbours are identified as the next of the cell, like this:

OOO
O@O
OOO

But if you whant to identify more neighbours, you can use to be in this way:

OOOOO
OOOOO
OO@OO
OOOOO
OOOOO

You can imagine that the rules of "Need 3 neighbours to be alive" can be easily made or disturbed by this change of rule. But what it causes is that life is more spaced and occupies more of the screen.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0