A Lebanese take on Basra, the Middle Eastern fishing card game, made in Godot. Play against the computer, capture cards from the table, and race to 101 points.
Play it in your browser at jongomez.dev/basra
Four cards go face up on the table and each player gets six. On your turn, play one card from your hand:
- Match: it takes every table card of the same rank.
- Add up: a number card also takes groups of table cards that add up to its value. Aces count as 1, so an 8 can take a 2 and a 6.
- Queens and kings only take matching queens and kings.
- Jacks sweep the whole table.
- If it takes nothing, the card stays on the table.
When both hands are empty, everyone gets six more until the deck runs out. A jack never starts on the table: it goes back into the deck and is replaced.
Basra: clear the whole table in one play, by matching or adding up, for a 10-point bonus. Sweeping with a jack never counts.
At the end of a round, whoever captured last takes the cards left on the table. The first to 101 points at the end of a round wins.
| Card or bonus | Points |
|---|---|
| 10 of diamonds | 3 |
| 2 of clubs | 2 |
| Each ace | 1 |
| Each jack | 1 |
| Most cards captured (no one on a tie) | 3 |
| Each Basra | 10 |
- Hover over a card in your hand to see what it would capture.
- Click a card to play it.
- Esc or the Menu button opens the pause menu, with the rules, a scoring cheat sheet, achievements, card backs, a sound toggle and a new game.
- On a phone, play in landscape.
21 achievements reward things like your first Basra, Basras on back-to-back turns, collecting all four aces in a round, or a comeback from 50 points down. Some are secret. Earning certain ones unlocks new card-back designs, which you can switch between from the pause menu. Progress is saved on your device (per browser on the web).
- Install Godot 4.7.
- Open this folder as a project in Godot.
- Press F5 to play.
The rules and AI tests in tests/ run through the bundled
Godot AI editor plugin's test runner.
The game is published to GitHub Pages from the gh-pages branch. With Godot's
Web export templates installed, run:
tools/deploy_web.shIt exports the single-threaded Web build and replaces the gh-pages branch with
it. The site updates a minute or two later.
| Path | What's there |
|---|---|
scripts/core/ |
Rules, scoring, match flow and the AI. No UI code. |
scripts/ui/ |
The table, cards, effects, pause menu and sound. |
scenes/main.tscn |
The game screen. |
shaders/ |
The marbled felt and the card tilt. |
tests/ |
Rules and match tests. |
tools/deploy_web.sh |
Exports and publishes the web build. |
Basra is licensed under the GNU General Public License v3.0. The bundled Godot AI plugin (MIT) and the Pixelify Sans font (SIL Open Font License) keep their own licenses; see NOTICE.md.
