Skip to content

Commit

Permalink
Support multiple description languages
Browse files Browse the repository at this point in the history
  • Loading branch information
leanil committed Jun 15, 2023
1 parent 3dfbf89 commit 5c09b58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion ai-arena.game.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"name": "Planet War",
"shortDescription": "Conquer planets strategically to expand your empire over the whole galaxy.",
"picturePath": "./cover.png",
"fullDescriptionPath": "game-description.md",
"fullDescription": {
"en": "game-description-en.md",
"hu": "game-description-hu.md"
},
"playerCount": {
"min": 2,
"max": 6
Expand Down
8 changes: 4 additions & 4 deletions game-description-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ Data of planets (_P_ lines):\
`T` : integer, number of troops in transit.

Troops data (_T_ lines):\
`playerID`, `from`, `to`, `count`, `arrive`
`playerID`: integer, player ID\.
`playerID`, `from`, `to`, `count`, `arrive`\
`playerID`: integer, player ID\
`from`, `to`: _planetID_ - integers, starting point and destination of the troops sent (can only be sent from own planet)\
`count`: integer, number of units sent\
`arrive`: integer, the number of the round (tick) when the units will arrive
Expand All @@ -96,7 +96,7 @@ Troops data (_T_ lines):\
`T`: integer, number of troops to move

Troops data (_T_ lines)\
`from`, `to`, `count`
`from`, `to`, `count`\
`from`, `to`: _planetID_ - integers, starting location and destination of the units being sent (can only be sent from own planet)\
`count`: positive integer, number of units sent

Expand Down Expand Up @@ -130,7 +130,7 @@ Server:
10 10 14 0
```

Server (1st tick)
Server (tick 0)

```
0
Expand Down
2 changes: 1 addition & 1 deletion game-description.md → game-description-hu.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Szerver:
10 10 14 0
```

Szerver (1. tick)
Szerver (tick 0)

```
0
Expand Down

0 comments on commit 5c09b58

Please sign in to comment.