Skip to the content

Gunjin軍人

Play five hidden-rank games, keep setups private, share redacted views and replay, and pass one device between players.

Gunjin is the Japanese word 軍人 for a soldier. About the name

Contents

Reference · Views, replay and player

wordsfunction

Returns the localized interface string table.

Import it

import { words } from "@johnmorrisdotca/gunjin";

Definition

function words(language?: Language): { readonly title: "Gunjin"; readonly pass: "Pass the device to the named player, then continue."; readonly setup: "Place every piece in your home area, then submit your side."; readonly turn: "Move one piece. Opponent ranks stay hidden."; readonly captureFlagTurn: "Choose a move. Ranks are revealed when pieces battle."; readonly battleHistory: "Recent battles"; readonly battle: "Battle"; readonly selectPiece: "Choose one of your pieces."; readonly selectTarget: "Choose a highlighted destination."; readonly invalidSetup: "That setup does not meet this mode's placement rules."; readonly stale: "That action is out of date. Reload the current position."; readonly undoSetup: "Remove last piece"; readonly submitSetup: "Finish setup"; readonly passButton: "Pass device"; readonly undoPass: "New match"; readonly offerDraw: "Offer draw"; readonly acceptDraw: "Accept draw"; readonly declineDraw: "Decline draw"; readonly resign: "Resign"; readonly newMatch: "New match"; readonly saveReplay: "Save public replay"; readonly settings: "Settings"; readonly material: "Board material"; readonly pieceStyle: "Piece style"; readonly mode: "Game"; readonly boardSize: "Board size"; readonly status: "Game status"; readonly board: "Board squares. Use arrow keys to move and Enter or Space to choose."; readonly red: "Red"; readonly blue: "Blue"; readonly winner: "wins"; readonly draw: "Draw"; readonly finishObjective: "The objective piece was captured."; readonly finishThreshold: "The capture threshold was reached."; readonly finishBlocked: "The opponent has no legal move."; readonly finishFlagWon: "The flag was captured."; readonly finishFlagHeld: "The flag reached the far row and survived the reply turn."; readonly finishRepetition: "The public position repeated three times."; readonly finishResigned: "A player resigned."; readonly finishAgreed: "The players agreed to a draw."; readonly captured: "pieces captured"; readonly role: "piece"; readonly opponent: "Opponent piece"; readonly camp: "Safe camp"; readonly headquarters: "Headquarters"; readonly lake: "Lake"; readonly language: "Language"; readonly modeNames: { readonly "hidden-hasami": "Hidden Hasami"; readonly "luzhanqi-mini": "Luzhanqi Mini"; readonly salpakan: "Salpakan Classic"; readonly "stratego-lite": "Hidden Capture Flag"; readonly "gunjin-shogi": "Gunjin Shogi · Club Rules"; }; } | { readonly title: "軍人"; readonly pass: "表示されたプレイヤーに端末を渡して続けます。"; readonly setup: "自陣にすべての駒を置いてから配置を確定します。"; readonly turn: "駒を一つ動かします。相手の階級は表示されません。"; readonly captureFlagTurn: "駒を動かします。戦闘では両方の階級が公開されます。"; readonly battleHistory: "最近の戦闘"; readonly battle: "戦闘"; readonly selectPiece: "自分の駒を選びます。"; readonly selectTarget: "色のついた移動先を選びます。"; readonly invalidSetup: "この配置は、このゲームの配置ルールに合いません。"; readonly stale: "操作が古くなっています。現在の盤面を読み直してください。"; readonly undoSetup: "最後の駒を戻す"; readonly submitSetup: "配置を確定"; readonly passButton: "端末を渡す"; readonly undoPass: "新しい対局"; readonly offerDraw: "引き分けを提案"; readonly acceptDraw: "引き分けに同意"; readonly declineDraw: "提案を断る"; readonly resign: "投了"; readonly newMatch: "新しい対局"; readonly saveReplay: "公開棋譜を保存"; readonly settings: "設定"; readonly material: "盤の素材"; readonly pieceStyle: "駒の形"; readonly mode: "ゲーム"; readonly boardSize: "盤の大きさ"; readonly status: "対局状況"; readonly board: "盤のマスです。矢印キーで移動し、Enter または Space で選びます。"; readonly red: "赤"; readonly blue: "青"; readonly winner: "の勝ち"; readonly draw: "引き分け"; readonly finishObjective: "目標の駒が取られました。"; readonly finishThreshold: "駒の数の条件を満たしました。"; readonly finishBlocked: "相手に合法手がありません。"; readonly finishFlagWon: "旗が取られました。"; readonly finishFlagHeld: "旗が敵陣の端まで進み、相手の応手を生き残りました。"; readonly finishRepetition: "公開盤面が三回同じになりました。"; readonly finishResigned: "投了しました。"; readonly finishAgreed: "両者が引き分けに同意しました。"; readonly captured: "枚を取りました"; readonly role: "駒"; readonly opponent: "相手の駒"; readonly camp: "安全地帯"; readonly headquarters: "司令部"; readonly lake: "湖"; readonly language: "言語"; readonly modeNames: { readonly "hidden-hasami": "隠し挟み将棋"; readonly "luzhanqi-mini": "陸戦棋ミニ"; readonly salpakan: "サルパカン・クラシック"; readonly "stratego-lite": "隠し旗取り"; readonly "gunjin-shogi": "軍人将棋・将棋部ルール"; }; }

Parameters

NameTypeDescription
language (optional)Language

The native English or Japanese display language.

Returns

{ readonly title: "Gunjin"; readonly pass: "Pass the device to the named player, then continue."; readonly setup: "Place every piece in your home area, then submit your side."; readonly turn: "Move one piece. Opponent ranks stay hidden."; readonly captureFlagTurn: "Choose a move. Ranks are revealed when pieces battle."; readonly battleHistory: "Recent battles"; readonly battle: "Battle"; readonly selectPiece: "Choose one of your pieces."; readonly selectTarget: "Choose a highlighted destination."; readonly invalidSetup: "That setup does not meet this mode's placement rules."; readonly stale: "That action is out of date. Reload the current position."; readonly undoSetup: "Remove last piece"; readonly submitSetup: "Finish setup"; readonly passButton: "Pass device"; readonly undoPass: "New match"; readonly offerDraw: "Offer draw"; readonly acceptDraw: "Accept draw"; readonly declineDraw: "Decline draw"; readonly resign: "Resign"; readonly newMatch: "New match"; readonly saveReplay: "Save public replay"; readonly settings: "Settings"; readonly material: "Board material"; readonly pieceStyle: "Piece style"; readonly mode: "Game"; readonly boardSize: "Board size"; readonly status: "Game status"; readonly board: "Board squares. Use arrow keys to move and Enter or Space to choose."; readonly red: "Red"; readonly blue: "Blue"; readonly winner: "wins"; readonly draw: "Draw"; readonly finishObjective: "The objective piece was captured."; readonly finishThreshold: "The capture threshold was reached."; readonly finishBlocked: "The opponent has no legal move."; readonly finishFlagWon: "The flag was captured."; readonly finishFlagHeld: "The flag reached the far row and survived the reply turn."; readonly finishRepetition: "The public position repeated three times."; readonly finishResigned: "A player resigned."; readonly finishAgreed: "The players agreed to a draw."; readonly captured: "pieces captured"; readonly role: "piece"; readonly opponent: "Opponent piece"; readonly camp: "Safe camp"; readonly headquarters: "Headquarters"; readonly lake: "Lake"; readonly language: "Language"; readonly modeNames: { readonly "hidden-hasami": "Hidden Hasami"; readonly "luzhanqi-mini": "Luzhanqi Mini"; readonly salpakan: "Salpakan Classic"; readonly "stratego-lite": "Hidden Capture Flag"; readonly "gunjin-shogi": "Gunjin Shogi · Club Rules"; }; } | { readonly title: "軍人"; readonly pass: "表示されたプレイヤーに端末を渡して続けます。"; readonly setup: "自陣にすべての駒を置いてから配置を確定します。"; readonly turn: "駒を一つ動かします。相手の階級は表示されません。"; readonly captureFlagTurn: "駒を動かします。戦闘では両方の階級が公開されます。"; readonly battleHistory: "最近の戦闘"; readonly battle: "戦闘"; readonly selectPiece: "自分の駒を選びます。"; readonly selectTarget: "色のついた移動先を選びます。"; readonly invalidSetup: "この配置は、このゲームの配置ルールに合いません。"; readonly stale: "操作が古くなっています。現在の盤面を読み直してください。"; readonly undoSetup: "最後の駒を戻す"; readonly submitSetup: "配置を確定"; readonly passButton: "端末を渡す"; readonly undoPass: "新しい対局"; readonly offerDraw: "引き分けを提案"; readonly acceptDraw: "引き分けに同意"; readonly declineDraw: "提案を断る"; readonly resign: "投了"; readonly newMatch: "新しい対局"; readonly saveReplay: "公開棋譜を保存"; readonly settings: "設定"; readonly material: "盤の素材"; readonly pieceStyle: "駒の形"; readonly mode: "ゲーム"; readonly boardSize: "盤の大きさ"; readonly status: "対局状況"; readonly board: "盤のマスです。矢印キーで移動し、Enter または Space で選びます。"; readonly red: "赤"; readonly blue: "青"; readonly winner: "の勝ち"; readonly draw: "引き分け"; readonly finishObjective: "目標の駒が取られました。"; readonly finishThreshold: "駒の数の条件を満たしました。"; readonly finishBlocked: "相手に合法手がありません。"; readonly finishFlagWon: "旗が取られました。"; readonly finishFlagHeld: "旗が敵陣の端まで進み、相手の応手を生き残りました。"; readonly finishRepetition: "公開盤面が三回同じになりました。"; readonly finishResigned: "投了しました。"; readonly finishAgreed: "両者が引き分けに同意しました。"; readonly captured: "枚を取りました"; readonly role: "駒"; readonly opponent: "相手の駒"; readonly camp: "安全地帯"; readonly headquarters: "司令部"; readonly lake: "湖"; readonly language: "言語"; readonly modeNames: { readonly "hidden-hasami": "隠し挟み将棋"; readonly "luzhanqi-mini": "陸戦棋ミニ"; readonly salpakan: "サルパカン・クラシック"; readonly "stratego-lite": "隠し旗取り"; readonly "gunjin-shogi": "軍人将棋・将棋部ルール"; }; }

Returns the localized interface string table.

Examples

import { words } from "@johnmorrisdotca/gunjin";

console.log(words("en").title);
Gunjin

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/gunjin 0.2.1.