首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏ypw

    Minesweeper(蓝桥杯)

    然后就想着更好的方法嘛,就是给雷区标记,然后每个区的贡献值都是周围八个区的贡献值叠加。边输入边更新就能得到答案!

    45110发布于 2020-09-11
  • 来自专栏眯眯眼猫头鹰的小树杈

    Minesweeper

    题目要求 Let's play the minesweeper game (Wikipedia),online game)!

    62110发布于 2020-05-12
  • MineSweeper(扫雷游戏)代码分享

    #include <time.h> #define ROW 9 #define COL 9 #define ROWS ROW+2 #define COLS COL+2 #define ESAY_MineSweeper /打印棋盘 void Display_board(char board[ROWS][COLS], int row, int col) { int i = 0; printf("--------- MineSweeper return; } //设置雷 void Set_mine(char mine[ROWS][COLS],int row, int col) { // 设置时间戳,随机雷 int count = ESAY_MineSweeper ROWS][COLS],int row,int col) { int x = 0; int y = 0; int win = 0; while (win < (row * col - ESAY_MineSweeper win++; } } } else { printf("输入错误,重新输入\n"); } } if (win == row * col - ESAY_MineSweeper

    14410编辑于 2026-01-15
  • 来自专栏南桥谈编程

    Minesweeper game(Plain version)--C

    char set) 打印棋盘 void DisplayBoard(char board[ROWS][COLS], int row, int col) { printf("--------- Minesweeper define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include"game.h" void menu() { printf("***** Minesweeper ; } } } //打印棋盘 void DisplayBoard(char board[ROWS][COLS], int row, int col) { printf("--------- Minesweeper

    21410编辑于 2024-01-26
  • 来自专栏前端ACE

    蓝桥杯 算法提高 扫雷问题(Minesweeper

                         [蓝桥杯][算法提高VIP]扫雷(Minesweeper) 题目描述 扫雷游戏你一定玩过吧!

    64810编辑于 2022-11-21
  • 来自专栏wym

    Minesweeper

    Minesweeper time limit per test 1 second memory limit per test 256 megabytes input standard input Alex enjoyed playing Minesweeper that time. A Minesweeper field is a rectangle n×mn×m, where each cell is either empty, or contains a digit from  You can read more about Minesweeper in Wikipedia's article. 给你一个n*m的矩阵,问是否合理。

    65320发布于 2018-08-30
  • 来自专栏啄木鸟软件测试

    ChatGPT与我们玩游戏_排雷

    询问 以图形方式给出早期Windows挖地雷的python代码 回答 以下是一个简单的使用 Python 和 Tkinter 库实现的经典早期 Windows 挖地雷游戏(Minesweeper Windows 风格的挖地雷游戏(Python实现) import tkinter as tk import random import time class Minesweeper 运行代码,失败 Traceback (most recent call last): File "C:\Users\xiang\Desktop\Minesweeper.py", line 90, in game = Minesweeper(root, width=10, height=10, num_mines=20) File "C:\Users\xiang\Desktop\Minesweeper.py import tkinter as tk from tkinter import messagebox import random class Minesweeper:

    44310编辑于 2025-02-05
  • 来自专栏各类技术文章~

    Python游戏开发,pygame模块,Python实现扫雷小游戏

    定义完这些游戏中必要的元素类之后就在游戏主函数里实例化它们: # 实例化游戏地图 minesweeper_map = MinesweeperMap(cfg, images) position = (cfg.SCREENSIZE (type_='up') if emoji_button.rect.collidepoint(pygame.mouse.get_pos()): minesweeper_map == 1: emoji_button.setstatus(status_code=1) if minesweeper_map.openeds + minesweeper_map.flags == cfg.GAME_MATRIX_SIZE[0] * cfg.GAME_MATRIX_SIZE[1]: minesweeper_map.status_code = 1 emoji_button.setstatus(status_code=2) # --显示当前的游戏状态地图 minesweeper_map.draw(screen) emoji_button.draw

    2.7K40编辑于 2021-12-24
  • 来自专栏Windows技术交流

    如何把Win7旗舰版里的游戏迁移到Server2008R2

    gameux.dll的功能,点如图x64按钮安装后可以,我看了下版本是2008年的6.0.6001.18000,后来我又搜了下6.0.6001版本还有个2009年的6.0.6001.18005也能用需要注意的第2点:MineSweeper.exe 依赖同目录的MineSweeper.dll、slc.dll、XInput9_1_0.dll,需要整体迁移安装或修复DirectX并不能拥有XInput9_1_0.dll,用https://blog.csdn.net

    44310编辑于 2024-08-01
  • 来自专栏云产品运用

    AI写代码是什么体验?我试了腾讯云CodeBuddy Craft

    创建项目目录: minesweeper/ index.html css/style.css js/game.js 2.  mkdir -p minesweeper/css minesweeper/js 现在我们已经创建了项目目录结构,接下来让我们创建基础的HTML文件。HTML文件将包含游戏的基本结构,包括: 1.  minesweeper/css/style.css +127 -0 已接受 现在我们需要实现游戏的核心逻辑,这是最复杂的部分。我们需要在JavaScript中实现以下功能: 1.  execute_command chmod +x minesweeper/server.py 现在server.py已经有了执行权限,我们可以尝试运行服务器。 启动服务器: cd minesweeper python3 server.py 2. 

    1.5K30编辑于 2025-05-21
  • 来自专栏全栈技术

    使用 python 的单人AI 扫雷游戏

    3.克隆这个存储库: GitHub地址:https://github.com/wanghao221/minesweeper 设置 minesweeper.py ⚓ 扫雷游戏表示 class Minesweeper assets/images/mine.png") mine = pygame.transform.scale(mine, (cell_size, cell_size)) 创建游戏和 AI 代理 game = Minesweeper time.sleep(0.2) 重置游戏状态 elif resetButton.collidepoint(mouse): game = Minesweeper(height

    1.8K10发布于 2021-08-23
  • 来自专栏量子位

    一手实测腾讯混元大模型:重逻辑降幻觉,鹅厂自家应用已加持

    让混元助手的代码生成器生成一段扫雷代码,效果是酱婶的: 具体代码如下: import random def create_minesweeper_board(height, width, num_mines board def print_board(board): for row in board: print(' '.join(row)) print() def play_minesweeper input('Enter board width: ')) num_mines = int(input('Enter number of mines: ')) board = create_minesweeper_board (height, width, num_mines) print_board(board) play_minesweeper(board) 还贴心地给出了代码解释: 实测是可以成功运行的

    66330编辑于 2023-09-19
  • 来自专栏超前沿网络空间安全全栈学习宝典

    红队/白帽必经之路(19)——如何用Metasploit 制作Linux恶意木马病毒/软件获取shell[既然是红队,那就对自己狠一点]

    : amd64 Maintainer: Ubuntu MOTU Developers (ubuntu-motu@lists.ubuntu.com) Description: a text-based minesweeper Freesweep is an implementation of the popular minesweeper game, where one tries to find all the mines : amd64 Maintainer: Ubuntu MOTU Developers (ubuntu-motu@lists.ubuntu.com) Description: a text-based minesweeper Freesweep: is an implementation of the popular minesweeper game, where one tries to find all the mines

    98410编辑于 2024-12-25
  • 来自专栏AI算法与图像处理

    我在GitHub上找到了这些游戏项目,刺激!

    地址:https://github.com/propjockey/css-sweeper 游戏在线地址:https://propjockey.github.io/css-sweeper/ emoji-minesweeper Emoji-minesweeper 是一款表情符号的扫雷游戏。 左键单击可开启一个地点; 右键单击可将一个点标记为炸弹; 双击以打开目标附近的所有 8 个点(使用右键单击已标记为炸弹的点除外) GitHub 地址: https://github.com/muan/emoji-minesweeper 游戏在线地址: http://muan.github.io/emoji-minesweeper/ MazeBattles.com 使用 Node.js 和 Socket.io 实现的在线迷宫游戏,

    6.1K22发布于 2021-03-14
  • 来自专栏Rust语言学习交流

    【Rust 日报】2021-08-29 Embedded Rust 第一步:选择一块板子

    用户 brew 安装: $ brew install uzimaru0000/tap/tv GitHub:uzimaru0000/tv: CLI tool for displaying table minesweeper 在这里玩儿:Minesweeper GitHub:KarthikNedunchezhiyan/minesweeper: Minesweeper game developed with Rust, WebAssembly

    1.4K40发布于 2021-09-08
  • 来自专栏苦逼的码农

    出不了门的日子,自闭的我选择在 GitHub 上快乐的打游戏

    GitHub 网址:https://github.com/muan/emoji-minesweeper 我们来看一下游戏的一个截图界面: 那怎么玩儿呢? 在线网址:http://muan.github.io/emoji-minesweeper/ 0x04 俄罗斯方块 俄罗斯方块可以说是我以前最喜欢的小游戏之一啦,无论是在按键机上还是用遥控器在电视上玩,乐此不疲

    82520发布于 2020-02-26
  • 来自专栏全栈测试技术

    小游戏实战-Python实现石头剪刀布+扫雷小游戏

    == ' ': area[i][j] = str(self.not_mines_num(area, i, j)) # 组织打印游戏 def play_minesweeper name__ == "__main__": seweep = TestSweep() rows = 6 cols = 6 mines_num = 3 seweep.play_minesweeper

    66621编辑于 2024-03-15
  • 来自专栏帮你学MatLab

    MATLAB自动扫雷(3)——整体运行

    block_width global block_height global left global top %% 扫雷游戏窗口 class_name = "TMain"; title_name = "Minesweeper

    2.1K10发布于 2019-04-30
  • 来自专栏Python小二

    WTF!只需一行Python代码即可玩20几款小游戏

    查看一下可玩的游戏列表,如下所示: ant bagels bounce cannon connect crypto fidget flappy guess life madlibs maze memory minesweeper

    1.4K10编辑于 2022-08-24
  • 来自专栏五分钟学算法

    宅在家学不进去吗?试试这些 GitHub 上简单易学的游戏项目吧

    GitHub 地址→https://github.com/muan/emoji-minesweeper Emoji-minesweeper 是一款 Emoji 符号的扫雷游戏。

    1.8K10发布于 2020-02-20
领券