T0nyX1ang / noqx

Extended logic puzzle solver of noq.
https://noqx.tonyxiang.site/
GNU General Public License v3.0
4 stars 0 forks source link

[Refactor] Create a uniform constructor for all connectivity structures #8

Closed T0nyX1ang closed 6 months ago

T0nyX1ang commented 8 months ago

All the connectivity structures contain three parts:

Hence, it is possible to create a uniform constructor.

The following things are regarded as a connectivity structure:

T0nyX1ang commented 6 months ago

The former structure is hard to understand, so we are going to remake it. The remake will be more intuitive and understandable, which will try to set the connectivity into three parts:

The final call will become connectivity(initial='init_params', propagation='prop_params', constraint='con_params'), and a rule will be generated eventually.

T0nyX1ang commented 6 months ago

The refactor is almost completed now (in the dev branch).