{"id":15474553,"url":"https://github.com/bdero/blackbox","last_synced_at":"2026-02-08T00:04:02.762Z","repository":{"id":42267043,"uuid":"252308617","full_name":"bdero/blackbox","owner":"bdero","description":"Black Box is a turn-based two player board game where each player deduces their opponent's board state by casting rays. This implementation includes a browser client and NodeJS server, persists games to a database, has invite links, and supports unlimited spectators per game.","archived":false,"fork":false,"pushed_at":"2023-01-07T18:39:58.000Z","size":575,"stargazers_count":1,"open_issues_count":18,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-28T20:49:50.716Z","etag":null,"topics":["boardgame","flatbuffers","react","websocket"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bdero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-01T23:24:23.000Z","updated_at":"2025-07-23T23:33:15.000Z","dependencies_parsed_at":"2023-02-07T21:00:35.702Z","dependency_job_id":null,"html_url":"https://github.com/bdero/blackbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bdero/blackbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdero%2Fblackbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdero%2Fblackbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdero%2Fblackbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdero%2Fblackbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bdero","download_url":"https://codeload.github.com/bdero/blackbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdero%2Fblackbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29213499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T23:58:20.073Z","status":"ssl_error","status_checked_at":"2026-02-07T23:58:07.729Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boardgame","flatbuffers","react","websocket"],"created_at":"2024-10-02T03:02:51.458Z","updated_at":"2026-02-08T00:03:57.746Z","avatar_url":"https://github.com/bdero.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blackbox\n\n![Screenshot](screenshots/twoplayers.png)\n\nBlack Box is a turn-based two player board game where each player places objects (called \"atoms\") on their own game board and then attempts to deduce the location of the opponent's atoms by casting rays across the opponent's game board.\n\nThis implementation supports games with exactly 4 atoms. See this [Wikipedia article](https://en.wikipedia.org/wiki/Black_Box_(game)#Rules) for the full set of raycast behavior rules.\n\n## Running the server\n\n1. Ensure that the SQLite3 CLI tool is installed and available in the executable `PATH`:\n    * Arch Linux: `pacman -S sqlite`\n    * Windows with Scoop: `scoop install sqlite3`\n    * MacOS with Brew: `brew install sqlite`\n1. Clone this repository: `git clone https://github.com/bdero/blackbox.git`\n1. Install dependencies: `cd blackbox/server \u0026\u0026 npm install`\n1. Run the server: `npm start`\n\nThe server should start listening for HTTP requests on port 8888.\n\n**Note:** The server _only_ accepts WebSocket protocol upgrade requests and communicates strictly over WebSocket. It does not respond to generic HTTP requests or know how to serve the client to the browser.\n\n## Running the client\n\n1. Clone this repository: `git clone https://github.com/bdero/blackbox.git`\n1. Install dependencies: `cd blackbox/client \u0026\u0026 npm install`\n1. Run the server: `npm start`\n\n## License (MIT)\n\nCopyright © `2020` `Brandon DeRosier`\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the “Software”), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdero%2Fblackbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdero%2Fblackbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdero%2Fblackbox/lists"}