import setup import random def test_random_location() : print( "testing random_location()" ) print() random.seed( 2111 ) w = 1000 h = 500 print( "w:", w ) print( "h:", h ) print() spot = setup.random_location( w, h ) print( "random_location( w, h ):", spot ) print( "\n--------------------------------------\n" ) def test_initialize_city_locations() : print( "testing initialize_city_locations()" ) print() random.seed( "traveling salesperson" ) n = 4 w = 1000 h = 500 print( "n:", n ) print( "w:", w ) print( "h:", h ) print() cities = setup.initialize_city_locations( n, w, h ) print( "initialize_city_locations( n, w, h ): ", cities ) if ( __name__ == "__main__" ) : test_random_location() test_initialize_city_locations()