Open Lewis-Kelley opened 6 years ago
An important consideration is that there may be multiple blocks with the same faces as each other, even in the solution. Therefore, we can't just check against the ID positions but also how the blocks look to the user.
This may already be considered, but it's important to have in mind while tweaking things.
Currently, the
scoreCal
function only pays attention to the position of the block, but not which side is currently revealed. This can be very misleading for a user.https://github.com/RHIT-XPrize/rhit-xprize-blocksworld/blob/53775d2049399c6f6eab50d25938b7cb95180b63/2D%20Simulation/index.js#L458-L488
Bonus implementation points if it uses the new centralized
blocks.js
file.