This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// RPG Maker MZ - Snippet: Display Options One by One | |
//============================================================================= | |
/*: | |
* @target MZ | |
* @author 竹鳥 | |
* @plugindesc (v1.0.0) 令所有選擇項目逐一顯示。 | |
* | |
* @help snippet_DisplayOptionsOneByOne.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod numbers; | |
mod process; | |
use process::GameProcess; | |
fn main() { | |
println!("請輸入你猜測的數字,或者輸入 exit 以退出:"); | |
GameProcess::execute(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fp from "fastify-plugin" | |
import SocketIOServer from "socket.io" | |
import type { FastifyInstance, FastifyError } from "fastify" | |
export default fp(( | |
fastify: FastifyInstance, | |
options: any, | |
next: (err?: FastifyError | undefined) => void) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const rl = require("readline").createInterface({ | |
input: process.stdin, | |
output: process.stdout, | |
}) | |
const path = require("path") | |
const fs = require("fs") | |
const SAVE_PATH = path.join(__dirname, "./save.txt") |