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

main.py 742 B

123456789101112131415161718192021222324252627282930
  1. import os
  2. import sys
  3. sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
  4. sys.path.append(os.path.dirname(os.path.dirname(
  5. os.path.realpath(__file__))) + '/proto')
  6. from PyAPI.Interface import IAI
  7. from PyAPI.AI import AI
  8. from PyAPI.logic import Logic
  9. from typing import List, Callable
  10. def THUAI6Main(argv: List[str], AIBuilder: Callable) -> None:
  11. pID: int = 0
  12. sIP: str = "172.22.32.1"
  13. sPort: str = "8888"
  14. file: bool = True
  15. screen: bool = True
  16. warnOnly: bool = False
  17. logic = Logic(pID)
  18. print("Welcome to THUAI6")
  19. logic.Main(AIBuilder, sIP, sPort, file, screen, warnOnly)
  20. def CreateAI() -> IAI:
  21. return AI()
  22. if __name__ == '__main__':
  23. THUAI6Main(sys.argv, CreateAI)