Commit a0ce4989 authored by haiyoucuv's avatar haiyoucuv

init

parent e4c4bde0
......@@ -163,7 +163,7 @@ export class AISnake extends Snake {
}
}
// 添加新的方法来寻找可以协助的AI蛇
// 寻找可以协助的AI蛇
private findAssistPartner(player: Snake): AISnake | null {
if (!player || !player.isLife) return null;
......@@ -190,7 +190,7 @@ export class AISnake extends Snake {
return null;
}
// 添加新的执行方法
// 执行帮助
private executeAssisting() {
if (!this.assistTarget || !this.assistTarget.isLife || !this.targetSnake || !this.targetSnake.isLife) {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment