游戏可以运行

This commit is contained in:
2026-05-24 08:10:22 +08:00
commit 035b2f7af9
28 changed files with 4222 additions and 0 deletions

11
card_game/utils.py Normal file
View File

@@ -0,0 +1,11 @@
"""Utility functions."""
import math
def distance(x1, y1, x2, y2):
return math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
def lerp(a, b, t):
return a + (b - a) * t