# css-sweeper (opens new window)

只用 css 和 html 做扫雷游戏 https://raw.githubusercontent.com/propjockey/css-sweeper/master/index.html

涉及技术:

实现:

  • 选择 1-16 的难度等级
    • 即16种固定的布雷方式
    • <input type="radio">:checked选择器定义对应模式下的属性值
    • <a>:visited:hover样式效果
  • 剩余雷数
  • 计时
    • animation + content
  • 30*16的扫雷区
    • 30*16个 <input[type="checkbox"]> sweep 暴露层
    • 30*16个 <input[type="checkbox"]> qm 问号层
    • 30*16个 <input[type="checkbox"]> flag 旗帜层
    • 30*16个 <i> tile
  • 游戏结束
  • 游戏胜利
最后更新: 1/12/2023, 1:44:05 PM