@vankosoft/game-platform 1.2.2 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,180 @@
1
+ {
2
+ "backgammon": "步步高",
3
+ "invite": {
4
+ "copylink": "將此鏈接複製並發送給您的朋友",
5
+ "cancelinvite": "取消",
6
+ "startgame": "開始遊戲"
7
+ },
8
+ "loginbuttons": {
9
+ "signin": "登陸使用"
10
+ },
11
+ "logincontainer": {
12
+ "play": "玩",
13
+ "practice": "實踐",
14
+ "friend": "邀請朋友",
15
+ "tip": "小費",
16
+ "whenyousignin": "請登錄播放黃金!",
17
+ "accept": "接受邀請",
18
+ "tutorial": "規則"
19
+ },
20
+ "accountedit": {
21
+ "editaccount": "編輯帳戶",
22
+ "name": "名稱",
23
+ "requiredname": "名稱是強制性的",
24
+ "email": "電子郵件",
25
+ "emailNotification": "發電子郵件",
26
+ "language": "語",
27
+ "cancel": "取消",
28
+ "save": "保存",
29
+ "delete": "刪除",
30
+ "allyourgames": "您的所有遊戲和保存數據也將被刪除。你不能撤消這個。",
31
+ "sure": "你確定嗎?",
32
+ "yesdelete": "是刪除它",
33
+ "theme": "主題",
34
+ "showPhoto": "表演",
35
+ "loginname": "登錄名",
36
+ "issupported": "支持的"
37
+ },
38
+ "theme": {
39
+ "dark": "黑暗的",
40
+ "light": "光",
41
+ "blue": "藍色的",
42
+ "pink": "粉色的",
43
+ "green": "綠色的"
44
+ },
45
+ "accountmenu": {
46
+ "edit": "編輯帳戶",
47
+ "logout": "登出",
48
+ "about": "關於"
49
+ },
50
+ "boardbuttons": {
51
+ "done": "完畢",
52
+ "undo": "撤消",
53
+ "roll": "卷",
54
+ "exit": "出口",
55
+ "new": "新的",
56
+ "help": "幫助"
57
+ },
58
+ "gameboard": {
59
+ "black": "黑色的",
60
+ "white": "白色的",
61
+ "you": "你",
62
+ "left": "剩下",
63
+ "acceptDoubling": "接受",
64
+ "resign": "辭職"
65
+ },
66
+ "menu": {
67
+ "rotate": "旋轉",
68
+ "resign": "辭職",
69
+ "flip": "轉動"
70
+ },
71
+ "messageread": {
72
+ "delete": "刪除",
73
+ "next": "下一個",
74
+ "from": "從",
75
+ "nomore": "沒有更多的消息",
76
+ "version2Info": "你好<br>我剛剛發布了步步高2.0<br><br><strong>這些是新功能</strong><ul><li>顏色主題</li><li>支持多種語言</li><li>聲音</li><li>更聰明的ai.</li></ul>我希望你能喜歡他們<br><br>親切的問候<br>/Kristian",
77
+ "version3Info": "你好!<br>我剛剛發布了3.0<br><br><strong>這些是新功能。</strong><ul><li>黃金遊戲</li><li>玩家圖像</li></ul>我希望你能喜歡新版本。<br><br>親切的問候<br>/Kristian"
78
+ },
79
+ "shareprompt": {
80
+ "hello": "你好!",
81
+ "thissite": "這個網站仍然非常新,我們需要更多的球員。",
82
+ "humantohuman": "人類對人類的比賽是畢竟最有趣。",
83
+ "please": "請分享您的社交媒體。"
84
+ },
85
+ "errorhandler": {
86
+ "sendreport": "發送報告",
87
+ "clearerrors": "清楚錯誤",
88
+ "error": "錯誤"
89
+ },
90
+ "homebutton": {
91
+ "home": "家"
92
+ },
93
+ "newmessages": {
94
+ "one": "{{count}} 信息",
95
+ "many": "{{count}} 消息"
96
+ },
97
+ "toplist": {
98
+ "place": "地方",
99
+ "name": "名稱",
100
+ "score": "分數",
101
+ "you": "你",
102
+ "alltime": "總共",
103
+ "thisweek": "本星期"
104
+ },
105
+ "statusmessage": {
106
+ "yourturn": "輪到你了。 ({{color}})",
107
+ "waitingfor": "等待 {{color}} 移動。",
108
+ "youareblocked": "你被封鎖了。點擊“完成”",
109
+ "noconnection": "沒有服務器連接",
110
+ "opponentconnectionlost": "對手連接丟失了",
111
+ "waitingoppcnn": "等待對手連接",
112
+ "newscore": "新分數 {{ score }} ({{ increase }})",
113
+ "youwon": "恭喜!你贏了。 {{score}}",
114
+ "youlost": "對不起。你失去了比賽。 {{score}}",
115
+ "movenow": "現在搬家或丟失!",
116
+ "dblaccepted": "對手確實接受了。輪到你了。",
117
+ "dblrequested": "雙倍你的賭注或放棄。",
118
+ "waitfordblresponse": "等待對手回應。"
119
+ },
120
+ "black": "黑色的",
121
+ "white": "白色的",
122
+ "pleasewait": "請稍等",
123
+ "about": {
124
+ "aboutbackgammon": "關於步步高",
125
+ "thisisanopen": "這是一個開放的,只是為了有趣,自由時的愛好項目。",
126
+ "andyouarewelcome": "你非常歡迎來玩。",
127
+ "orifyouareadeveloper": "或者,如果您是開發人員,您可能對下面的鏈接感興趣,並包含所有詳細信息。",
128
+ "ongithub": "在GitHub上,您可以請求或投票給新功能,甚至可以使用拉拔請求。"
129
+ },
130
+ "goldbutton": {
131
+ "getgold": "更多黃金"
132
+ },
133
+ "tolittlegold": {
134
+ "youdonthave": "你沒有足夠的黃金。",
135
+ "youcangetmore": "每24小時,您可以獲得更多的黃金。",
136
+ "untilthen": "在那之前,您可以隨時播放練習遊戲對抗AI。"
137
+ },
138
+ "playaiquestion": {
139
+ "icantfind": "目前我找不到別人玩。",
140
+ "doyouwanttoplay": "你想對抗AI嗎?",
141
+ "playai": "玩AI.",
142
+ "keepwaiting": "繼續等待"
143
+ },
144
+ "password": {
145
+ "name": "名稱",
146
+ "email": "電子郵件",
147
+ "password": "密碼",
148
+ "repeat_password": "重複輸入密碼",
149
+ "incorrect": "電子郵件或密碼不正確",
150
+ "newplayer": "新手",
151
+ "create": "創造",
152
+ "login": "登錄",
153
+ "passdontmatch": "密碼不匹配",
154
+ "namerequired": "名稱是必需的",
155
+ "required": "密碼是必需的",
156
+ "format": "密碼必須至少有8個字符",
157
+ "takenname": "登錄名已被帶走"
158
+ },
159
+ "tutorial": {
160
+ "1": "步步高規則很簡單。移動任何檢查器骰子卷的步數。",
161
+ "2": "你播放黑色檢查員並朝此方向移動它們。",
162
+ "3": "對手扮演白色並朝著相反的方向移動。",
163
+ "4": "當您的跳棋內部達到家用板內時,它們可以刪除。",
164
+ "5": "首先刪除所有檢查員的玩家贏得了遊戲。",
165
+ "6": "您無法移動到具有兩個或更多對手跳棋的點。",
166
+ "7": "一個孤獨的檢查器稱為污點,可以由對手檢查器命中。",
167
+ "8": "該檢查員必須從欄中開始。",
168
+ "9": "最後,祝你好運,試著阻止你的對手!",
169
+ "next": "下一個",
170
+ "back": "後退"
171
+ },
172
+ "loadUpdates": "加載更新",
173
+ "unsubscribe": {
174
+ "stopped": "您將不會再收到Backgammon的任何電子郵件。",
175
+ "error": "對不起。出問題了。"
176
+ },
177
+ "chat": {
178
+ "entermessage": "在這裡聊天"
179
+ }
180
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,9 +1,13 @@
1
1
  import { CardSuit } from '../Enum/cardSuit';
2
2
  import { BridgeBeloteCardType } from '../Enum/bridgeBeloteCardType';
3
3
  import { ContractBridgeCardType } from '../Enum/contractBridgeCardType';
4
+ import { PlayerPosition } from '../Enum/playerPosition';
5
+ import { BidTrump } from '../Enum/bidTrump';
4
6
  export declare class Helper {
5
7
  static delay(ms: number): Promise<unknown>;
6
8
  static cardSuit(suit: CardSuit): string;
7
9
  static bridgeBeloteCardType(type: BridgeBeloteCardType): string;
8
10
  static contractBridgeCardType(type: ContractBridgeCardType): string;
11
+ static cardgamePlayerPosition(position: PlayerPosition): string;
12
+ static shortBidTrump(trump: BidTrump): string;
9
13
  }
package/dist/cjs/index.js CHANGED
@@ -53,6 +53,28 @@ exports.ContractBridgeCardType = void 0;
53
53
  ContractBridgeCardType[ContractBridgeCardType["Ace"] = 12] = "Ace";
54
54
  })(exports.ContractBridgeCardType || (exports.ContractBridgeCardType = {}));
55
55
 
56
+ exports.PlayerPosition = void 0;
57
+ (function (PlayerPosition) {
58
+ PlayerPosition[PlayerPosition["south"] = 0] = "south";
59
+ PlayerPosition[PlayerPosition["east"] = 1] = "east";
60
+ PlayerPosition[PlayerPosition["north"] = 2] = "north";
61
+ PlayerPosition[PlayerPosition["west"] = 3] = "west";
62
+ PlayerPosition[PlayerPosition["neither"] = 4] = "neither";
63
+ })(exports.PlayerPosition || (exports.PlayerPosition = {}));
64
+
65
+ exports.BidTrump = void 0;
66
+ (function (BidTrump) {
67
+ BidTrump[BidTrump["Pass"] = 0] = "Pass";
68
+ BidTrump[BidTrump["Clubs"] = 1] = "Clubs";
69
+ BidTrump[BidTrump["Diamonds"] = 2] = "Diamonds";
70
+ BidTrump[BidTrump["Hearts"] = 3] = "Hearts";
71
+ BidTrump[BidTrump["Spades"] = 4] = "Spades";
72
+ BidTrump[BidTrump["NoTrumps"] = 5] = "NoTrumps";
73
+ BidTrump[BidTrump["AllTrumps"] = 6] = "AllTrumps";
74
+ BidTrump[BidTrump["Double"] = 7] = "Double";
75
+ BidTrump[BidTrump["ReDouble"] = 8] = "ReDouble";
76
+ })(exports.BidTrump || (exports.BidTrump = {}));
77
+
56
78
  class Helper {
57
79
  static delay(ms) {
58
80
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -125,6 +147,38 @@ class Helper {
125
147
  throw new Error(`Invalid Card Type ${type}`);
126
148
  }
127
149
  }
150
+ static cardgamePlayerPosition(position) {
151
+ switch (position) {
152
+ case exports.PlayerPosition.south:
153
+ return 'South';
154
+ case exports.PlayerPosition.east:
155
+ return 'East';
156
+ case exports.PlayerPosition.north:
157
+ return 'North';
158
+ case exports.PlayerPosition.west:
159
+ return 'West';
160
+ default:
161
+ return 'Neither';
162
+ }
163
+ }
164
+ static shortBidTrump(trump) {
165
+ switch (trump) {
166
+ case exports.BidTrump.Clubs:
167
+ return 'C';
168
+ case exports.BidTrump.Diamonds:
169
+ return 'D';
170
+ case exports.BidTrump.Hearts:
171
+ return 'H';
172
+ case exports.BidTrump.Spades:
173
+ return 'S';
174
+ case exports.BidTrump.NoTrumps:
175
+ return 'BE';
176
+ case exports.BidTrump.AllTrumps:
177
+ return 'J';
178
+ default:
179
+ return 'Neither';
180
+ }
181
+ }
128
182
  }
129
183
 
130
184
  class Keys {
@@ -252,15 +306,6 @@ exports.ChessMoveType = void 0;
252
306
  ChessMoveType[ChessMoveType["EnPassant"] = 4] = "EnPassant";
253
307
  })(exports.ChessMoveType || (exports.ChessMoveType = {}));
254
308
 
255
- exports.PlayerPosition = void 0;
256
- (function (PlayerPosition) {
257
- PlayerPosition[PlayerPosition["south"] = 0] = "south";
258
- PlayerPosition[PlayerPosition["east"] = 1] = "east";
259
- PlayerPosition[PlayerPosition["north"] = 2] = "north";
260
- PlayerPosition[PlayerPosition["west"] = 3] = "west";
261
- PlayerPosition[PlayerPosition["neither"] = 4] = "neither";
262
- })(exports.PlayerPosition || (exports.PlayerPosition = {}));
263
-
264
309
  exports.CardGameTeam = void 0;
265
310
  (function (CardGameTeam) {
266
311
  CardGameTeam[CardGameTeam["SouthNorth"] = 0] = "SouthNorth";
@@ -268,19 +313,6 @@ exports.CardGameTeam = void 0;
268
313
  CardGameTeam[CardGameTeam["Neither"] = 2] = "Neither";
269
314
  })(exports.CardGameTeam || (exports.CardGameTeam = {}));
270
315
 
271
- exports.BidTrump = void 0;
272
- (function (BidTrump) {
273
- BidTrump[BidTrump["Pass"] = 0] = "Pass";
274
- BidTrump[BidTrump["Clubs"] = 1] = "Clubs";
275
- BidTrump[BidTrump["Diamonds"] = 2] = "Diamonds";
276
- BidTrump[BidTrump["Hearts"] = 3] = "Hearts";
277
- BidTrump[BidTrump["Spades"] = 4] = "Spades";
278
- BidTrump[BidTrump["NoTrumps"] = 5] = "NoTrumps";
279
- BidTrump[BidTrump["AllTrumps"] = 6] = "AllTrumps";
280
- BidTrump[BidTrump["Double"] = 7] = "Double";
281
- BidTrump[BidTrump["ReDouble"] = 8] = "ReDouble";
282
- })(exports.BidTrump || (exports.BidTrump = {}));
283
-
284
316
  exports.AnnounceType = void 0;
285
317
  (function (AnnounceType) {
286
318
  AnnounceType[AnnounceType["Belot"] = 0] = "Belot";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vankosoft/game-platform",
3
- "version": "1.2.2",
3
+ "version": "1.3.1",
4
4
  "description": "Game Platform",
5
5
  "repository": {
6
6
  "type": "git",