W3C home > Mailing lists > Public > public-xformsusers@w3.org > December 2019


From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Tue, 03 Dec 2019 15:23:19 +0100
To: public-xformsusers@w3.org
Message-ID: <op.0b77k5rlsmjzpq@steven-xps13>
I have a use-case.

A matrix, where cells have a relationship with neighbouring cells.
The new value for a cell repeatedly gets calculated on the basis of its  
current neighbours.

For instance, the game of life.

Each cell is either populated or not.
If an unpopulated cell has three populated neighbours, it becomes  
If a populated cell has more than 3 or less than 2 populated neighbours it  
becomes unpopulated.

This happens in generations: you don't want to replace the value of a cell  
with its new value until its neighbours have calculated their new value.

So how would we do that?

I think the simplest way would be to catch a refresh event to set a value  
that says the next generation can start.
(I think that this is a reason why the refresh event shouldn't be  
deprecated after all).

Other ideas?

Received on Tuesday, 3 December 2019 14:23:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:52 UTC