Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

OverComplex Calculator

Puzzle programming game. Sometimes to create a simple outcomes require complex solutions. This is such a game. · By shalevy

Solving the 2nd Puzzle

A topic by shalevy created Aug 15, 2017 Views: 141
Viewing posts 1 to 1
Developer

To Solve the second Puzzle you need to connect 3 Tiles together. First, create a Constant Tile that has the value '1'. So this Tile will create the value '1' on it's out direction ports each cycle. Then connect this Tile to a 'Plus' (+) Tile. This Tile adds all of it's inputs each cycle to create a new value on it's out port. But it also has a nice property that can be enabled where it remembers it's last result and uses it it addition to all the in port values. Which in this case basically means it act as an accumulator. You need to enable this in the Plus Tile property pane. Then connect the Plus Tile to an OUT Tile.

There are more ways to solve this Puzzle. Another option is to have 3 Constant Tiles, connected through the Equal Tiles such that the value '1' connects directly to the OUT tile, the value '2' connects through 1 Equal Tile to the OUT tile and the value '3' connects through 2 Equal Tiles to the OUT tile. This way you create a delay to when the values '2' and '3' appears on the OUT Tile. Another important details here is how the OUT Tile processes it's inputs, which is clockwise order. Meaning that if there are valid values in more than one in port, it will use the one in the smaller port number.