cyphesis/rulesets/deeds/benchmarks.py
Erik Ogenvik d8eeb05c3d Revert include optimize for Python files.
CLion wasn't as good at optimizing Python as it was at optimizing C++.

This reverts commit 7aaa9b9ba7.
2017-05-28 16:32:17 +02:00

21 lines
630 B
Python

#This file is distributed under the terms of the GNU General Public license.
#Copyright (C) 2008 Alistair Riddoch (See the file COPYING for details).
from atlas import *
from random import *
from cyphesis.editor import create_editor
from physics import Quaternion
from physics import Vector3D
from math import *
import time
def default(host='', account='', password='', **args):
# Spray the world with rubbish
m=create_editor(host, account, password)
for i in range(10000):
m.make('oak', pos=(uniform(-500, 300), uniform(-500, 300), 0))
m.delete(m.look_for(type='oak').id)
time.sleep(0.1)