Anders and Briegel in Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_client.py 304B

8 vuotta sitten
1234567891011121314151617
  1. import requests
  2. import abp, json
  3. import time
  4. def _test_client():
  5. client = abp.Client(clear=True)
  6. client.clear()
  7. for i in range(100):
  8. client.add_node(i)
  9. client.act_local_rotation(i, 10)
  10. for i in range(100-1):
  11. client.act_cz(i, i+1)
  12. print client.get_state()