Files
poker_task3/main.py
2025-09-23 17:40:25 +08:00

25 lines
596 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env python3
from poker_task3.task3 import runTask3
def main():
print("=== task3扑克牌TURN阶段EMD距离计算 ===")
print("请输入三行数据:")
print("第一行hand1如 AsKs")
print("第二行hand2如 7s6s")
print("第三行board cards如 8h9d9cQh")
lines = []
for i in range(3):
lines.append(input())
input_text = "\n".join(lines)
distance = runTask3(input_text)
if distance is not None:
print(f"EMD距离: {distance}")
return distance
if __name__ == "__main__":
main()