//: C03:Static.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
// Using a static variable in a func
//: C03:Static.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
// Using a static variable in a func
//: C03:Static.cpp
// From Thinking in C++, 2nd Edition
// at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Using static data in a function
#include
#
# DESCRIPTION
# This file contains a procedure written in Tcl that supports static
# variables.
#
#+ static - static variables support
#
# This procedure supports static variabl
#mode can be "static" or "mobile"
mode=static
#The field is defined as a polygon
field=(-700,-600);(-650,500);(250,500);(300,-400);(50,-200);(-200,-300);
# obstacles are not allowed to overlap and