TQGame在线小游戏联机平台1.3.2


一、详细介绍

TQGame在线小游戏联机平台1.3.2

实在是没有什么事情干了

索性无聊就搞了个这么个东西出来

目前有两个模式 都是双人的

带音效

奖池里抽到的道具可以在背包里使用

然后呢细分了排行榜以及个人信息视图

每个模式都有它的三个评分点,三个评分点决定了最后的综合评分,综合评分又决定了最后的排位积分加减值

对局结算场景和匹配成功场景都做了

运行环境:php8.0 及以上 MySQL5.7 及以上

二、效果展示

1.部分代码

代码如下(示例):

function regist_check_password_safe(password) {
    let score = 0;
    if (password.length >= 6 && password.length < 8) {
      score += 1;
    } else if (password.length >= 8 && password.length <= 12) {
      score += 2;
    } else {
      score += 3;
    }
    if (/[a-z]/.test(password)) score += 1;
    if (/[A-Z]/.test(password)) score += 1;
    if (/[0-9]/.test(password)) score += 1;
    if (/[\W_]/.test(password)) score += 1;
    const repeatRegex = /(.)\1{1,}/;
    if (repeatRegex.test(password)) {
      score -= 2;
    }
    const sequentialRegex = /([a-zA-Z0-9])(?=\1{1,})/;
    const sequentialChars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
    for (let i = 0; i < sequentialChars.length - 1; i++) {
      const seq = sequentialChars.slice(i, i + 3);
      if (password.includes(seq)) {
        score -= 2;
      }
    }
    if (score <= 3) {
      if (language_ischinese) {
        return {
          level: 1,
          message: '密码太弱,建议增加复杂度。'
        };
      }
      return {
        level: 1,
        message: 'The password is too weak, and it is recommended to increase the complexity.'
      };
    } else if (score > 3 && score <= 5) {
      return {
        level: 2,
        message: 'Passwords are medium in strength and it is recommended to increase complexity.'
      };
    } else if (score > 5 && score <= 7) {
      if (language_ischinese) {
        return {
          level: 3,
          message: '密码强度中等,建议增加复杂度。'
        };
      }
      return {
        level: 3,
        message: 'The password is strong, very good!'
      };
    } else {
      if (language_ischinese) {
        return {
          level: 4,
          message: '密码强度很高,非常安全!'
        };
      }
      return {
        level: 4,
        message: 'The password is very strong and very secure!'
      };
    }
  }

2.效果图展示

请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述


三、学习资料下载

蓝奏云:https://qumaw.lanzoul.com/iBoJB2ytw8of

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值