增加机器人比大小模式的处理

This commit is contained in:
zhl 2021-03-30 14:34:25 +08:00
parent e7021949a6
commit f67b2c3c9f
3 changed files with 7 additions and 0 deletions

View File

@ -132,6 +132,9 @@ export class Robot {
case GameStateConst.STATE_ROUND_RESULT: case GameStateConst.STATE_ROUND_RESULT:
console.log('结算轮') console.log('结算轮')
break break
case GameStateConst.STATE_DICE_TURN:
self.discard()
break
} }
}) })
} }

View File

@ -121,6 +121,9 @@ export class RobotClient implements Client {
self.eatOrGiveUp() self.eatOrGiveUp()
} }
break break
case GameStateConst.STATE_DICE_TURN:
self.discard()
break
case GameStateConst.STATE_ROUND_RESULT: case GameStateConst.STATE_ROUND_RESULT:
break break
} }

View File

@ -50,6 +50,7 @@ export class CardGameState extends Schema {
* 1: 匹配 * 1: 匹配
* 2: 好友对战 * 2: 好友对战
* 3: 娱乐 * 3: 娱乐
* 4: 比大小
* @type {number} * @type {number}
*/ */
@type('number') @type('number')