Commit 7f131fa5 authored by Florent Jacquemard's avatar Florent Jacquemard
Browse files

update table synonyms in PS

parent 19a4e8ea
......@@ -65,6 +65,9 @@ int PSConfig::alteration(int name) const
}
const int PSConfig::SYNONYM_UNDEF = 9;
const int PSConfig::SYNONYM[12][3][2] =
{
{ {1, -2}, {0, 0}, {6, 1} }, // 0
......@@ -128,8 +131,8 @@ std::vector<PSConfig*> PSConfig::successors(const Pitch& p) const
for (size_t i = 0; i < 3; ++i)
{
int name = SYNONYMS[m][i][0];
int accid = SYNONYMS[m][i][1];
int name = SYNONYM[m][i][0];
int accid = SYNONYM[m][i][1];
// case of 8 and (short list) 1, 3, 6, 10
if ((name != SYNONYM_UNDEF) && (accid != SYNONYM_UNDEF))
v.push_back(new PSConfigMark(*this, name, accid));
......
......@@ -108,6 +108,9 @@ private:
static const int SYNONYM[12][3][2];
static const int SYNONYM_UNDEF;
/// short list for SYNONYM's
static const int SYNONYMSHORT[12][3][2];
// same as SYNONYMS with flats first
// static const int SYNONYMF[12][3][2];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment