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 637 B

1234567891011121314151617181920212223242526
  1. import sys
  2. from typing import List, Callable
  3. from logic import Logic
  4. from AI import AI, Setting
  5. from Interface import IAI
  6. import structures as THUAI6
  7. def THUAI6Main(argv: List[str], AIBuilder: Callable) -> None:
  8. pID: int = 114514
  9. sIP: str = "114.51.41.91"
  10. sPort: str = "9810"
  11. file: bool = False
  12. print: bool = False
  13. warnOnly: bool = False
  14. logic = Logic(Setting.playerType(), pID,
  15. Setting.humanType(), Setting.butcherType())
  16. logic.Main(AIBuilder, sIP, sPort, file, print, warnOnly)
  17. def CreateAI() -> IAI:
  18. return AI()
  19. if __name__ == '__main__':
  20. THUAI6Main(sys.argv, CreateAI)