Code Monkey home page Code Monkey logo

rhythm_scratch_cpp's Introduction

音游猜曲名刮刮乐

Python 版本:https://github.com/SkyEye-FAST/rhythm_scratch

此脚本适用于即时通讯的群组/聊天室/服务器等处,需要主持人来操作,而非自主进行游戏。

执行与题目相关的命令后会自动将输出内容复制到剪贴板,无需手动复制。

题目和答案会在执行过程中以文件形式出现在输出文件夹(默认为output)内。

刮开的字符如果为字母(包括拉丁、希腊、西里尔),则会同时刮开大小写。

需求

代码以 C++20(202002L)标准编写,编译器为clang,仅在 Windows 10/11 进行过测试,不保证在其他平台的可用性。

使用了库toml11以解析toml文件,相关文件已经放在仓库内,使用 MIT 协议分发。

命令列表

  • help | ? - 显示帮助
  • exit | e - 退出
  • version | ver | v - 列出曲库使用音游版本号
  • (heart | h) add [amount] - 增加可用刮开次数
  • (heart | h) remove [amount] - 减少可用刮开次数
  • (open | o) [character] - 刮开指定字符
  • openspace | os - 刮开空格
  • (check | c) [index] - 将某题全部刮开
  • (show | s) - 显示题目

曲库

目前仓库内提供的音游曲库如下:

  • Arcaea(版本:v5.0.1)
  • Muse Dash(版本:3.9.0)
  • Orzmic(版本:2.19.28)
  • Phiros(版本:3.1.3)
  • RYCEAM(版本:v1.0.5)

自定义曲库

在曲库文件夹(默认为song_dict)下,请按照以下结构存放曲库:

  • 曲库文件夹
    • 曲库 1
      • dict
        • 曲库文件 1
        • 曲库文件 2
      • dict.toml
    • 曲库 2
    • 曲库 3

dict.toml的格式如下:

name = "游戏名称"
version = "游戏版本"
dicts = ["曲库文件1", "曲库文件2"]

曲库文件为纯文本,一行一个曲名。

配置文件

配置文件名为configuration.toml,位置与脚本同级。

键名 默认值 说明
generate_amount 10 生成曲目数量
guess_chancess 10 可用刮开次数
键名 默认值 说明
output_folder output 输出文件夹
dict_folder song_dict 曲库文件夹

反馈

遇到的问题和功能建议等可以提出议题(Issue)。

欢迎创建拉取请求(Pull request)。

rhythm_scratch_cpp's People

Contributors

skyeye-fast avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.