theRAPTLab / gsgo

GEM-STEP Foundation repo migrated from GitLab June 2023
1 stars 1 forks source link

Add feature dependency checking #415

Open benloh opened 2 years ago

benloh commented 2 years ago

When adding touch, it appears you need to have used addFeature for Costume, then Physics, then Touches, in that order. So it’s a bit of a hassle

benloh commented 2 years ago

Touches

We thought we might be able to just "auto-add" any missing features when using Touches, but the problem is actually rather complex.

A few gotchas:

A few rules the system should enforce:

Would it be better for the system to:

a) quietly default to values if the user did not set them (leading to mysterious magical behaviors)

or

b) passively show help to the student so they know what they need to do and how to do it

or

c) auto-insert explicit gemscript commands to set default values so that they are visible and can be changed by the student?

Vision

Feature dependency checking for Vision is potentially even more complicated.

For example, for canSeeColorOfAgent to work:


CONCLUSION

This is probably a 2.0 feature.