Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion NEW_GAME.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ cp -r template/game www/games/my-game
{
"id": "my-game",
"cat": "puzzle",
"people": 1,
"name": { "fa": "بازی من", "en": "My Game", "zh": "我的游戏", "de": "Mein Spiel" },
"summary": { "fa": "یک جمله، کوتاه.", "en": "One short line.", "zh": "一句话,简短。", "de": "Ein kurzer Satz." },
"path": "games/my-game/index.html",
Expand All @@ -36,7 +37,7 @@ cp -r template/game www/games/my-game
}
```

`name` و `summary` برای هر زبان جدول `LOCALES` لازم‌اند، و `name` همین بازی در `Chogan.game({ name })` باید عیناً همین‌ها باشد؛ `tools/test.js` هر دو را می‌سنجد. `cat` دسته‌ی بازی در منوست و یکی از `puzzle` (پازل و فکری)، `board` (تخته‌ای)، `cards` (کارتی) یا `skill` (مهارتی) است؛ فهرستش `CATS` در `www/index.html` است و `tools/test.js` بازی بی‌دسته را رد می‌کند. `path` و `icon` مسیر کامل فایل‌اند، نه پوشه. سرویس‌ورکر دقیقاً همین رشته‌ها را کش می‌کند و منو هم دقیقاً همین‌ها را لینک می‌کند، پس هیچ حدسی وسط کار نیست. اگر بازی فایل جدا لازم داشت — مثلاً یک تصویر — مسیرش را در `files` بگذار.
`name` و `summary` برای هر زبان جدول `LOCALES` لازم‌اند، و `name` همین بازی در `Chogan.game({ name })` باید عیناً همین‌ها باشد؛ `tools/test.js` هر دو را می‌سنجد. `cat` دسته‌ی بازی در منوست و یکی از `puzzle` (پازل و فکری)، `board` (تخته‌ای)، `cards` (کارتی) یا `skill` (مهارتی) است؛ فهرستش `CATS` در `www/index.html` است و `tools/test.js` بازی بی‌دسته را رد می‌کند. `people` بیشترین تعداد آدمی است که روی یک گوشی با هم بازی می‌کنند (۱ برای بازی تک‌نفره یا فقط مقابل ربات، ۲ برای دونفره، تا ۴)؛ فیلتر نفرات منو از روی همین است (#561). `path` و `icon` مسیر کامل فایل‌اند، نه پوشه. سرویس‌ورکر دقیقاً همین رشته‌ها را کش می‌کند و منو هم دقیقاً همین‌ها را لینک می‌کند، پس هیچ حدسی وسط کار نیست. اگر بازی فایل جدا لازم داشت — مثلاً یک تصویر — مسیرش را در `files` بگذار.

بعد `tools/shortcuts.sh` را اجرا کن. میان‌برهای اپ وب نصب‌شده (نگه داشتن یا کلیک راست روی آیکون) از روی `games.json` در `manifest.webmanifest` نوشته می‌شوند، با یک `icon-192.png` کنار `icon.svg`. فقط ده بازی اول میان‌بر می‌گیرند، چون کروم بیشتر نمی‌خواند. اگر اجرایش نکنی، `tools/test.js` شکست می‌خورد.

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ Ways to play:
| Ping Pong | Table tennis seen from above: the ball bounces off the sides of the table, where it meets the paddle sets the angle of the return, and every hit is a little faster; two serves each, one each from ten all, first to 11 by two; against three levels of bot or two players on one phone, each on their own half, and a daily match against the medium bot |
| Air Hockey | Air hockey seen from above on a neon table drawn in code: move your mallet in your own half and hit the puck off the boards into the other goal, the faster the hit the faster the shot; after a goal the puck goes to the player who let it in; first to seven, against three levels of bot or two players on one phone, each on their own half, and a daily match against the medium bot |
| Echo | The memory game known as Simon: four coloured pads round a disc light up in turn, each with its own note, and you repeat the order; every round adds one more and plays a little faster, the first mistake ends it, and nothing is timed; each pad also has its own shape for colour blindness; endless with a best score, and a daily sequence the same for everyone |
| Lights Off | The puzzle known as Lights Out: pressing a light switches it and its four neighbours, and the goal is to put every light out; 3×3, 5×5 and 7×7 boards, each made solvable and showing the fewest moves it needs, found by an exact solver; the fewest moves earn three stars and extra moves only cost stars, never the game; undo and restart, and a daily 5×5 puzzle the same for everyone |
| Corridor | The wall-and-path game on a 9×9 board: on each turn move your pawn one cell or put a two-cell wall in the grooves to make the other way longer; ten walls each, which may never shut anyone off from their goal; a pawn may jump over the other or step beside it when a wall is behind; first to the far row wins, and the flag game also wins beside a flag at the edge, the centre or both; against three levels of bot or two players on one phone, undo, and a daily game against the medium bot |

Around the games: search by name, pinned and recently played games and a row of new ones at the top of the menu, long-press shortcuts to games on the app icon, a daily challenge that is identical on every device with no server at all, a weekly offline league with five tiers, over 150 awards, a shared coin that is only ever spent on hints and cosmetics, stats and a profile, and a Persian, English, Simplified Chinese, German and Spanish interface with light and dark themes.

Expand Down Expand Up @@ -196,6 +198,8 @@ MIT, see [LICENSE](LICENSE). The Vazirmatn font is under the OFL; its licence te
| پینگ‌پنگ | تنیس روی میز از بالا: توپ از دو لبه‌ی میز برمی‌گردد، جایی از راکت که توپ به آن می‌خورد زاویه‌ی برگشت را تعیین می‌کند و هر ضربه کمی تندتر است؛ هر نفر دو سرویس و از ده‌ده یک سرویس، تا ۱۱ با دو امتیاز اختلاف؛ مقابل ربات در سه سطح یا دونفره روی یک گوشی، هر کس روی نیمه‌ی خودش، و مسابقه‌ی روزانه با ربات متوسط |
| ایرهاکی | ایرهاکی از بالا روی میز نئونی که با کد کشیده شده: دسته‌ات را در نیمه‌ی خودت حرکت بده و توپک را با کمک دیواره‌ها به دروازه‌ی حریف بزن، هر چه ضربه تندتر، شوت تندتر؛ بعد از هر گل توپک به نیمه‌ی کسی می‌رود که گل خورده؛ اول هفت گل، مقابل ربات در سه سطح یا دونفره روی یک گوشی، هر کس روی نیمه‌ی خودش، و مسابقه‌ی روزانه با ربات متوسط |
| سایمون | بازی حافظه‌ی سایمون: چهار دکمه‌ی رنگی دور یک دایره به نوبت روشن می‌شوند، هر کدام با صدای خودش، و تو همان ترتیب را تکرار می‌کنی؛ هر دور یکی بیشتر و کمی تندتر، اولین اشتباه پایان بازی است و برای تکرار وقت نمی‌گیرد؛ هر دکمه شکل خودش را هم دارد تا بدون رنگ هم شناخته شود؛ بی‌پایان با رکورد، و ترتیب روزانه‌ای که برای همه یکی است |
| خاموشی | پازل معروف Lights Out: زدن هر چراغ خودش و چهار همسایه‌اش را عوض می‌کند و هدف خاموش کردن همه‌ی چراغ‌هاست؛ صفحه‌های ۳×۳، ۵×۵ و ۷×۷، همه حل‌شدنی و با کمترین تعداد حرکتی که حل‌کننده‌ی دقیق پیدا کرده؛ کمترین حرکت سه ستاره دارد و حرکت اضافه فقط ستاره کم می‌کند، نه اینکه ببازی؛ برگرداندن و شروع دوباره، و پازل ۵×۵ روزانه‌ای که برای همه یکی است |
| راهرو | بازی دیوار و راه روی صفحه‌ی ۹×۹: در هر نوبت مهره‌ات را یک خانه ببر یا یک دیوار دوخانه‌ای در شیارها بگذار تا راه حریف دورتر شود؛ هر نفر ده دیوار دارد که هیچ‌وقت نباید راه کسی را کامل ببندد؛ می‌شود از روی مهره‌ی حریف پرید یا اگر پشتش دیوار است کنارش رفت؛ اولین کسی که به ردیف آن طرف برسد می‌برد، و در بازی پرچم رسیدن به کنار پرچمِ لبه، وسط یا هر دو هم برد است؛ مقابل ربات در سه سطح یا دونفره روی یک گوشی، برگرداندن، و بازی روزانه با ربات متوسط |

بیرون از بازی‌ها: جست‌وجوی بازی با نام، بازی‌های سنجاق‌شده، اخیراً بازی‌شده و ردیف بازی‌های تازه بالای منو، میان‌بر بازی‌ها با نگه داشتن آیکون اپ، چالش روزانه‌ی مشترک برای همه‌ی دستگاه‌ها بدون هیچ سروری، لیگ هفتگی آفلاین با پنج رده، بیش از ۱۵۰ دستاورد، سکه‌ی مشترک که فقط خرج راهنمایی و تزئینات می‌شود، آمار و پروفایل، و رابط فارسی، انگلیسی، چینی ساده‌شده، آلمانی و اسپانیایی با تم روشن و تاریک.

Expand Down
4 changes: 4 additions & 0 deletions fastlane/metadata/android/de-DE/changelogs/41.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Neue Spiele: Lichter aus, lösche alle Lichter mit den wenigsten Zügen; Korridor, bring die Figur hinüber und versperr den anderen mit Wänden.
Gorillas: eine neue Partie zeichnet ihre eigene Stadt.
Puzzle: Pfeiltasten gehen bei den losen Teilen reihenweise.
Menü: schwebende untere Leiste und ein Filter nach Spielerzahl.
10 changes: 6 additions & 4 deletions fastlane/metadata/android/de-DE/full_description.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Capybara bündelt über vierzig kleine Spiele in einer App, die du wirklich zu Ende spielst; neue kommen als Updates dazu.
Capybara: über vierzig kleine Spiele zum Durchspielen in einer App; neue kommen als Updates.

Die Spiele:

Expand All @@ -23,11 +23,11 @@ Die Spiele:
* Schach — gegen die KI in drei Stufen oder zu zweit, dazu Lichess-Rätsel
* Hokm — das persische Kartenspiel zu viert, im Team gegen zwei KI-Gegner
* Blocksturz — fallende Steine: 40-Reihen-Sprint oder 100-Reihen-Marathon
* Gomoku — fünf in einer Reihe auf 9, 13 oder 15 Linien, gegen die KI oder zu zweit
* Gomoku — fünf in einer Reihe auf 9, 13 oder 15 Linien
* Go — Go auf 9×9 mit automatischer Zählung, gegen die KI oder zu zweit
* Ausweg — schick jeden Pfeil in einer passenden Reihenfolge vom Brett
* Blackjack — näher an 21 als der Croupier, Partien aus zehn Händen ohne Einsätze
* 8-Ball — versenke deine Gruppe und zuletzt die 8, gegen die KI oder zu zweit
* Blackjack — näher an 21 als der Croupier, ohne Einsätze
* 8-Ball — versenke deine Gruppe und zuletzt die 8
* Snooker — Rot, dann Farbe, zuletzt die Farben der Reihe nach; 6, 10 oder 15 Rote
* Stau — schieb die Autos weg und fahr vom Parkplatz
* Kettenreaktion — Kugeln legen, bis Felder in Ketten platzen; 2–4 Spieler oder Bots
Expand All @@ -51,6 +51,8 @@ Die Spiele:
* Pingpong — Tischtennis von oben, bis 11; Bot oder zu zweit
* Airhockey — ein Neontisch, bis sieben Tore; Bot oder zu zweit
* Echo — Farbtasten leuchten auf; tippe die Folge nach, jede Runde eine mehr
* Lichter aus — jedes Licht schaltet seine Nachbarn mit; lösche alle
* Korridor — bring die Figur hinüber und versperr den anderen mit Wänden

Rund um die Spiele:

Expand Down
8 changes: 8 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/41.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
New games:
- Lights Off: put every light out in the fewest moves
- Corridor: walk your pawn across and block the other with walls
Bug fixes:
- Gorillas: a new match draws its own city
- Jigsaw: arrow keys move by row in the loose pieces
Improvements:
- Menu: a floating bottom bar, and a filter by number of players
12 changes: 7 additions & 5 deletions fastlane/metadata/android/en-US/full_description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The games:
* Reversi — two players or against the AI
* Nine Men's Morris — two players or against the AI
* Peg Solitaire — leave one peg, in the centre for a perfect game
* Battleship — against an AI that only knows what you would know
* Battleship — against an AI that never cheats
* Bridges — three sizes, every puzzle with exactly one solution
* Code Breaker — three levels, colour-blind friendly
* Breakout — twelve fixed levels, three balls each
Expand All @@ -23,16 +23,16 @@ The games:
* Chess — against the AI or two players, plus Lichess puzzles
* Hokm — the Persian four-player card game, with an AI partner
* Block Drop — falling blocks: a 40-line sprint or a 100-line marathon
* Gomoku — five in a row on a 9, 13 or 15 board, against the AI or two players
* Gomoku — five in a row on 9, 13 or 15 lines
* Go — 9×9 Go with automatic counting, against the AI or two players
* Way Out — send every arrow off the board in a working order
* Blackjack — closer to 21 than the dealer, ten-hand matches with no betting
* 8-Ball Pool — pot your group, then the 8, against the AI or two players
* 8-Ball Pool — pot your group, then the 8
* Snooker — reds and colours, then the colours in order; 6, 10 or 15 reds
* Gridlock — slide the cars aside and drive yours out of the lot
* Chain Reaction — add orbs until cells burst in chains; 2 to 4 players or against bots
* Chain Reaction — add orbs until cells burst in chains; 2 to 4 players or bots
* Ludo — come out on a six and race your tokens home; 2 to 4 players or bots
* Snakes and Ladders — first to 100; 2 to 4 players or against bots
* Snakes and Ladders — first to 100; 2 to 4 players or bots
* Darts — 501 or 301, finish on a double; against a bot or two players
* Bowling — ten frames, swipe to bowl
* Sliding Puzzle — slide the numbered tiles back into order, from 3×3 to 5×5
Expand All @@ -51,6 +51,8 @@ The games:
* Ping Pong — table tennis from above, first to 11; a bot or two players
* Air Hockey — a neon table, first to seven goals; a bot or two players
* Echo — the coloured pads light up; repeat the order, one more each round
* Lights Off — every light switches its neighbours too; put them all out
* Corridor — walk your pawn across and block the other with walls

Around the games:

Expand Down
4 changes: 4 additions & 0 deletions fastlane/metadata/android/es-ES/changelogs/41.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Juegos nuevos: Apagón, apaga todas las luces con el mínimo de movimientos; Pasillo, lleva tu ficha al otro lado y corta el paso con muros.
Gorilas: una partida nueva dibuja su propia ciudad.
Rompecabezas: las flechas van por filas en las piezas sueltas.
Menú: barra inferior flotante y filtro por número de jugadores.
14 changes: 8 additions & 6 deletions fastlane/metadata/android/es-ES/full_description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Los juegos:
* Backgammon — dos jugadores o contra la IA, los gammons cuentan doble
* Mancala — reglas de Kalah, dos jugadores o contra la IA
* Nonograma — tres tamaños, cada puzle se resuelve solo con lógica
* FreeCell — las partidas numeradas clásicas, nunca la única imposible
* FreeCell — las partidas numeradas clásicas
* Reversi — dos jugadores o contra la IA
* Molino — dos jugadores o contra la IA
* Senku — deja una sola ficha, en el centro para una partida perfecta
* Batalla naval — contra una IA que solo sabe lo que sabrías tú
* Batalla naval — contra una IA que no hace trampa
* Puentes — tres tamaños, cada puzle con exactamente una solución
* Descifra el código — tres niveles, apto para daltónicos
* Rompeladrillos — doce niveles fijos, tres bolas en cada uno
Expand All @@ -23,14 +23,14 @@ Los juegos:
* Ajedrez — contra la IA en tres niveles o para dos, y problemas de Lichess
* Hokm — el juego de cartas persa para cuatro: tú y tu compañero contra la IA
* Lluvia de bloques — bloques que caen: un sprint de 40 líneas o un maratón de 100
* Gomoku — cinco en línea en tablero de 9, 13 o 15, contra la IA o para dos
* Gomoku — cinco en línea en tablero de 9, 13 o 15
* Go — Go de 9×9 con recuento automático, contra la IA o para dos
* Salida — saca todas las flechas del tablero en un orden que funcione
* Blackjack — acércate más a 21 que la banca, partidas de diez manos sin apuestas
* Bola 8 — mete tu grupo y al final la 8, contra la IA o para dos
* Blackjack — acércate más a 21 que la banca, sin apuestas
* Bola 8 — mete tu grupo y al final la 8
* Snooker — roja, luego color y al final los colores en orden; 6, 10 o 15 rojas
* Atasco — aparta los coches y saca el tuyo del aparcamiento
* Reacción en cadena — añade orbes hasta que estallen en cadena; de 2 a 4 o bots
* Reacción en cadena — orbes que estallan en cadena; de 2 a 4 o bots
* Ludo — sal con un seis y lleva tus fichas a casa; de 2 a 4 o bots
* Serpientes y escaleras — llega primero a 100; de 2 a 4 o bots
* Dardos — 501 o 301, cierre en doble; contra un bot o a dos
Expand All @@ -51,6 +51,8 @@ Los juegos:
* Ping-pong — tenis de mesa desde arriba, a 11; bot o para dos
* Air hockey — una mesa de neón, a siete goles; bot o para dos
* Eco — los botones de colores se encienden; repite el orden, uno más por ronda
* Apagón — cada luz cambia también a sus vecinas; apágalas todas
* Pasillo — lleva tu ficha al otro lado y corta el paso con muros

Alrededor de los juegos:

Expand Down
4 changes: 4 additions & 0 deletions fastlane/metadata/android/fa/changelogs/41.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
بازی‌های تازه: خاموشی؛ همه‌ی چراغ‌ها را با کمترین حرکت خاموش کن. راهرو؛ مهره را به آن طرف برسان و با دیوار راه حریف را دور کن.
گوریل‌ها: مسابقه‌ی تازه شهر خودش را می‌کشد.
جورچین: کلیدهای جهتی در تکه‌های جدا ردیف‌به‌ردیف می‌روند.
منو: نوار پایین شناور و فیلتر تعداد بازیکن.
Loading
Loading