@hhoangphuoc/escape-room-cli
Version:
A CLI for playing AI-generated escape room games. Install globally with: npm install -g @hhoangphuoc/escape-room-cli
7 lines (6 loc) • 4.93 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Box, Text } from 'ink';
const Instructions = () => {
return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { bold: true, color: "cyan", children: "\uD83C\uDFAE AI ESCAPE ROOM - GAME INSTRUCTIONS" }) }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { bold: true, color: "yellow", children: "GAME OBJECTIVE:" }), _jsx(Text, { children: "This game is designed to help you practice with using AI to solve the unsolvable puzzles. Sometimes, challenging puzzles are created to test your creativity and problem-solving skills." }), _jsx(Text, { children: "Practice it and challenge yourself in this AI-generated escape room, finding the correct password to escape." })] }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { bold: true, color: "yellow", children: "LOGIN AND REGISTER:" }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, rowGap: 0.25, children: [_jsx(Text, { children: " If you don't have an account: " }), _jsx(Text, { children: " 1. Start registering a new account with '/register'" }), _jsx(Text, { children: " 2. Your credentials will be saved in your local machine, so you can login again next time" }), _jsx(Text, { children: " 3. You can also login with '/login' if you already have an account" })] }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, rowGap: 0.25, children: [_jsx(Text, { children: " If you already have an account: " }), _jsx(Text, { children: " 1. Login again with '/login'" }), _jsx(Text, { children: " 2. Logout from your account with '/logout'" })] })] }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { bold: true, color: "yellow", children: "HOW TO PLAY:" }), _jsx(Text, { children: "1. Start a new game with '/newgame'" }), _jsx(Text, { children: "2. Look around your room with '/look' to see available objects" }), _jsx(Text, { children: "3. Inspect objects with '/inspect [object_name]' to find puzzles" }), _jsx(Text, { children: "4. Solve puzzles with '/guess [object_name] [answer]'" }), _jsx(Text, { children: "5. Use '/hint' if you're stuck (but it affects your score!)" }), _jsx(Text, { children: "6. Find the room password and escape with '/password [password]'" })] }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { bold: true, color: "yellow", children: "GAME MODES:" }), _jsx(Text, { children: "\u2022 Single Room: Escape from one challenging room" }), _jsx(Text, { children: "\u2022 Multi Room: Navigate through multiple connected rooms" })] }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { bold: true, color: "yellow", children: "SCORING:" }), _jsx(Text, { children: "\u2022 Faster completion = Higher score" }), _jsx(Text, { children: "\u2022 Fewer hints used = Better ranking" }), _jsx(Text, { children: "\u2022 Check your ranking with '/leaderboard'" })] }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { bold: true, color: "yellow", children: "AI ASSISTANCE:" }), _jsx(Text, { children: "\u2022 Use natural language to get help (requires API key)" }), _jsx(Text, { children: "\u2022 Change AI model with '/model' command" }), _jsx(Text, { children: "\u2022 Ask questions like \"What does this puzzle mean?\"" }), _jsx(Text, { children: "\u2022 Check the cost of using AI with '/cost'" })] }), _jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsx(Text, { bold: true, color: "yellow", children: "ESSENTIAL COMMANDS:" }), _jsx(Text, { color: "green", children: "'/newgame'" }), _jsx(Text, { children: " - Start a new escape room" }), _jsx(Text, { color: "green", children: "'/look'" }), _jsx(Text, { children: " - Examine your current room" }), _jsx(Text, { color: "green", children: "'/inspect [object]'" }), _jsx(Text, { children: " - Study an object closely" }), _jsx(Text, { color: "green", children: "'/guess [object] [answer]'" }), _jsx(Text, { children: " - Solve a puzzle" }), _jsx(Text, { color: "green", children: "'/password [password]'" }), _jsx(Text, { children: " - Try to escape" }), _jsx(Text, { color: "green", children: "'/hint'" }), _jsx(Text, { children: " - Get a helpful hint" }), _jsx(Text, { color: "green", children: "'/leaderboard'" }), _jsx(Text, { children: " - View top players" }), _jsx(Text, { color: "green", children: "'/help'" }), _jsx(Text, { children: " - Show all commands" })] }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { bold: true, color: "magenta", children: "\uD83D\uDCA1 TIP: Think creatively! AI-generated puzzles can be surprising and unique." }) }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { color: "gray", children: "Type any command or ask a question to get started. Good luck, adventurer!" }) })] }));
};
export default Instructions;