Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SGG Unlock Condition Lint #544

Open
cammoore opened this issue Mar 5, 2013 · 3 comments
Open

SGG Unlock Condition Lint #544

cammoore opened this issue Mar 5, 2013 · 3 comments
Assignees
Milestone

Comments

@cammoore
Copy link
Member

cammoore commented Mar 5, 2013

  • Need a "lint" for the smart grid game
    • Predicates that are mutually dependent (so there is deadlock).
    • Referring to an action not in the grid.
    • An action is set to false, and something depends upon it. (warning)
    • An action that depends upon another action at a higher level (warning)
    • An action with a URL that gives a 404 when retrieved.
    • Events whose dates are not within round.
    • Validate predicate names, etc.
@ghost ghost assigned cammoore Mar 5, 2013
@cammoore
Copy link
Member Author

We now have an unlock_lint.py that can detect the first four items, deadlock/unreachable, referring to action not in grid, false unlock conditions, and higher level.

I don't understand the URL one. Do we need to search the descriptions looking for 'http'?

@cammoore
Copy link
Member Author

Have initial version working and hooked up to the designer.

@rbrewer
Copy link
Member

rbrewer commented Apr 11, 2013

For the URL one, I was indeed thinking of parsing the Markdown/HTML for http links and checking if they gave 2XX status codes (or following a redirect to a valid page). This would be really useful when you are dusting off content for use after a few months, because sometimes links have changed or broken.

For video links to YouTube, it would be great if there was some way to check if the video was still available, as YouTube doesn't return 404 for videos that are taken down, it provides a valid page that says it is no longer available. Maybe there is an API? This might be too hard for right now, but it did actually happen between 2011 and 2012 Kukui Cup (the OTEC video we were using was removed in the intervening year).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants