anchor.diff:      pts.text = "Points: ${points}";
     }
   
  -  void showDirection() {
  -    var pts = querySelector("#direction");
  -    pts.text = "Direction: ${direction.name}";
  -  }
   
     // Detect if we're outside the canvas.
     bool isOnCanvas(Coord coord) {
  
positive.code:     canvas.fillRect(0, 0, 20, 20);
      gold.render(canvas);
      snake.render(canvas);
    }
  
  
  
negative.code:     }
    }
  
    Gold getGold() {
      return gold;
    }
  
    bool tailTurnFilter(Coord c, Coord dir) {
      return ((c == up && dir != down) || (c == down && dir != up) || (c == left
          && dir != right) || (c == right && dir != left));
  