-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from govariantsteam/variant_descriptions
Add short Variant description in game view
- Loading branch information
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
packages/vue-client/src/components/variant_descriptions/variant_description.consts.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export const badukDescriptionShort = | ||
"Traditional game of Baduk a.k.a. Go, Weiqi\n Surround stones to capture them\n Secure more territory + captures to win"; | ||
export const badukWithAbstractBoardDescriptionShort = | ||
"Baduk with varying board patterns"; | ||
export const phantomDescriptionShort = | ||
"Baduk but other players stones are invisible"; | ||
export const parallelDescriptionShort = "Multiplayer Baduk with parallel moves"; | ||
export const captureDescriptionShort = | ||
"Baduk but the first player who captures a stone wins"; | ||
export const chessDescriptionShort = | ||
"Baduk with different types of stones\n the goal is to capture a specific stone"; | ||
export const tetrisDescriptionShort = | ||
"Baduk but players can't play Tetris shapes"; | ||
export const pyramidDescriptionShort = | ||
"Baduk with pyramid scoring\n Center is worth most points, edge the least"; | ||
export const thueMorseDescriptionShort = | ||
"Baduk with move order according to Thue-Morse sequence"; | ||
export const freezeDescriptionShort = | ||
"Baduk but after an Atari, stones can't be captured"; | ||
export const fractionalDescriptionShort = | ||
"Multiplayer Baduk with multicolored stones and parallel moves"; | ||
export const keimaDescriptionShort = | ||
"Baduk but players play two moves that must form a Keima (Knight's move) shape"; | ||
export const oneColorDescriptionShort = "Baduk with obfuscated stone colors"; | ||
|
||
export const variant_short_description_map: { [variant: string]: string } = { | ||
baduk: badukDescriptionShort, | ||
badukWithAbstractBoard: badukWithAbstractBoardDescriptionShort, | ||
phantom: phantomDescriptionShort, | ||
parallel: parallelDescriptionShort, | ||
capture: captureDescriptionShort, | ||
chess: chessDescriptionShort, | ||
tetris: tetrisDescriptionShort, | ||
pyramid: pyramidDescriptionShort, | ||
"thue-morse": thueMorseDescriptionShort, | ||
freeze: freezeDescriptionShort, | ||
fractional: fractionalDescriptionShort, | ||
keima: keimaDescriptionShort, | ||
"one color": oneColorDescriptionShort, | ||
}; |
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