Flexible Windows

version 13/130803 by Jon Ingold

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Validating rock numbers (not for release)

    When play begins (this is the rock validation rule):
        repeat with item running through g-windows:
            let L be the list of g-windows;
            remove item from L;
            repeat with compared running through L:
                if the rock-value of item is the rock-value of compared:
                    say "***Warning: There appears to be a conflict in the rock numbers of the g-windows '[item]' and '[compared]'. Assign all rock-values for custom windows manually to remedy this problem. Avoid using 201 or 202, as these are reserved.";
                    stop.