This release is a pre-release and may not be stable for production use.
Four in a Row
Four in a row against Emkay, by voice. The seven columns are numbered 1 to 7 from the left, so a move is just "4". You drop red, Emkay drops yellow and says its column – play on the screen, or with your own frame and drop Emkay's discs where it says. Easy, normal or hard; you start, or Emkay does. Made for Emkay, works on any OpenVoiceOS.
Examples
"play four in a row" "start four in a row over"
"4" "column 6" "I drop in two"
"where did you go?" "which columns are full?" "how many discs?"
"give me a hint" "undo"
"play an easy four in a row" "play four in a row, you start"
"show the rules" "help" "stop playing"
"spil fire på stribe", "4", "kolonne 6", "hvor lagde du", "giv mig et tip",
"fortryd", "spil fire på stribe, du starter", "vis reglerne" (Danish)
While you play, everything you say goes to the game first – before any other skill – until you say stop or stop playing (the game is saved), or a few minutes pass in silence.
The rules
"Show the rules" puts them on the screen as a page of their own, and Emkay reads them. They are on the skill's page in the control panel too.
- You drop red and begin (or say you start, and Emkay begins); Emkay drops yellow.
- A disc falls to the lowest free hole of its column. Then it is the other's turn.
- Four of your discs in a row – across, up or on the slant – wins.
- When the frame is full and nobody has four, it is a draw.
Emkay's play
Emkay looks ahead with a minimax search (alpha-beta): two moves on easy, where it also plays like a child now and then; up to six on normal and ten on hard, as far as the time allows (about one and a half and three seconds). It always takes a win it sees, blocks yours, and likes the middle. "Give me a hint" asks it for a good column of yours, and undo takes back your last move and Emkay's.
"Play ..." and OCP
OpenVoiceOS lets its media player (OCP) answer every play .... So Four in a Row is a common play
skill too: when OCP searches for "four in a row", the skill answers with the game
(MediaType.GAME), and OCP hands it over. When the game ends, OCP is told, so pause, next and
play are the music's again.
Saved as you go
After every move the game is saved – on the device, and with My Emkay for your other devices too. Stop playing, and play four in a row goes on where you were. Start four in a row over starts again.
Pictures
The upright blue frame with its seven numbered columns, red and yellow discs, the last disc ringed in white and four in a row drawn through when there is one. One plain SVG, so it shows on every screen, the Mark II's too. On a standing screen – Emkay on a phone – the frame stands on its own. No background music.
Settings
In the control panel (Four in a Row, under Everyday): the game on now or the saved one, start it
on the device, start over, stop – and Show pictures and Layout (auto, portrait,
landscape).
For developers
The rules and Emkay's play (engine.py) are plain Python with no OVOS in it:
Game(new_game(), words).handle("4"). The game is a small dict that is saved as JSON. The words of
each language are in locale/<lang>/four_in_a_row.json; spoken numbers are in spoken_numbers.py.
boardgame.py is what every board game of emkay-voice does the same way.
Languages
Catalan, Danish, Dutch, English, French, Galician, German, Italian, Norwegian (bokmål), Portuguese (Brazil and Portugal), Spanish, Swedish and Basque. Everything except English and Danish is machine translated and only loosely read through by a native Dane – corrections are very welcome. The game goes by its plain name in every language, not by any brand's.
Category
Entertainment
Tags
#game #boardgame #fourinarow #emkay
License
Apache-2.0. Made by emkay-voice, maintained by Andreas Lorensen.
Metadata
Release files for ovos-skill-four-in-a-row 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ovos_skill_four_in_a_row-0.1.0a1.tar.gz | 190.5 kB | With provenance | Details for ovos_skill_four_in_a_row-0.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ovos_skill_four_in_a_row-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for ovos_skill_four_in_a_row-0.1.0a1-py3-none-any.whl |
Total release size: 406.0 kB
Release files / ovos_skill_four_in_a_row-0.1.0a1.tar.gz
| Download URL | ovos_skill_four_in_a_row-0.1.0a1.tar.gz |
|---|---|
| Size | 190.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
523161a6748b2fdd5fc4dc7a025a141cd988236ec8b43409c5dd0238a5684cef
|
|
BLAKE2b-256 checksum How to use checksums |
46ff5243dd15964394f582329830260031890d1ab3b6559803ddacd1f391eb21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logRelease files / ovos_skill_four_in_a_row-0.1.0a1-py3-none-any.whl
| Download URL | ovos_skill_four_in_a_row-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 215.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b12f434dce7155539c64427496b6b230d0389a7e7b4a99523e47086acd6a15b
|
|
BLAKE2b-256 checksum How to use checksums |
541b8c8e88887820900ba6481ded5cff7817dcf0e7d22739e7d78dd5380104e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logSecurity for ovos-skill-four-in-a-row 0.1.0a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ovos_skill_four_in_a_row-0.1.0a1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.