diff --git a/ja b/ja
index 8145ecf..695979f 100644
--- a/ja
+++ b/ja
@@ -150,6 +150,11 @@ while running:
         print("You collected a cheese! Total cheese count:", player.cheese_count)
         cheese.rect.topleft = (-32, -32)  # 移除奶酪
 
+    # 如果玩家收集了10个奶酪,则结束游戏
+    if player.cheese_count >= 10:
+        print("Congratulations! You collected 10 cheeses!")
+        running = False
+
     screen.fill(BLUE)
     draw_maze(maze)
     player.draw(screen)
@@ -158,3 +163,4 @@ while running:
 
 pygame.quit()
 sys.exit()
+