{"id":20629230,"url":"https://github.com/dcts/connect4-cli","last_synced_at":"2026-04-19T17:38:19.396Z","repository":{"id":45821226,"uuid":"514725159","full_name":"dcts/connect4-cli","owner":"dcts","description":"Play a casual game of connect4 in the terminal.","archived":false,"fork":false,"pushed_at":"2022-08-22T20:08:25.000Z","size":43,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-06T11:13:15.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/dcts.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":"2022-07-17T02:04:48.000Z","updated_at":"2022-07-17T19:48:24.000Z","dependencies_parsed_at":"2022-07-17T06:00:47.266Z","dependency_job_id":null,"html_url":"https://github.com/dcts/connect4-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Fconnect4-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Fconnect4-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Fconnect4-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcts%2Fconnect4-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcts","download_url":"https://codeload.github.com/dcts/connect4-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242582608,"owners_count":20153279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-16T13:42:13.831Z","updated_at":"2025-12-04T20:02:58.669Z","avatar_url":"https://github.com/dcts.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connect 4 CLI\n\nplay a casual game of connect 4 in your terminal. Writen in Rust.\n\n# Tasks\n- [x] Game Logic Implementation\n- [x] Graphics Engine with ASCII game state and menu logic\n- [ ] Networking Logic (with `libp2p`, see [tutorial](https://blog.logrocket.com/libp2p-tutorial-build-a-peer-to-peer-app-in-rust) for more info)\n\n# Roadmap\n- [ ] P2P User experience\n  - [ ] input your name\n  - [ ] START or JOIN a game\n    - [ ] start =\u003e joins room of open games and waits for someone to join...\n    - [ ] join  =\u003e display all open games! (can select a peer or refresh the page)\n  - [ ] make your move... (check for invalid moves)\n  - [ ] valid move \n        1. update lokal game state\n        2. send move to other client as payload\n  - [ ] wait for move from friend\n\n# OVERKILL FEATURES \n- [ ] Brutal Mode =\u003e both player have same color, remember your position you must\n- [ ] animate drop\n\n# Graphics Engine Example\n## Menu Engine (joining a game)\n**Screen 0**\n```txt\n=== connect-4-cli ===\n\nWelcome! (intro text goes here)\n\nWhats your name?\n\u003e\n```\n\n**Screen 1**\n```txt\n=== connect-4-cli ===\nWelceome dcts\n\n\u003e (1) Start a Game\n\u003e (2) Join a Game\n\nChoose action by typing a number:\n\u003e\n```\n\n**Screen 2**\n```txt\n=== connect-4-cli ===\n\n✅ game created\njoining lobby...\n\nLOBBY\n    NAME               | ID\n(*) dcts...............| hceui17e8\n    art_brock..........| lkv32v873\n    frodo..............| sv7823uzd\n    gandalf............| v824hjfvx\n        \n👀 waitig for someone to join your game ... 👀\n```\n\n## Playing a Game\n- Idea how to structure it\n  1. title \u0026 info\n  2. game state\n  3. menu (or loading screen)\n\n```txt\n=== connect-4-cli ===\n\n🟡 dcts \n🔴 gandalf \n\n|  |  |  |  |  |  |  |\n|  |  |  |  |  |  |  |\n|  |  |  |  |  |  |  |\n|  |  |  |  |  |  |  |\n|  |  |  |  |  |  |  |\n|  |  |🔴|  |🟡|🟡|  |\n|  |🟡|🟡|🔴|🔴|🔴|🟡|\n*--*--*--*--*--*--*--*\n\nwaiting for gandalf to play...\n\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcts%2Fconnect4-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcts%2Fconnect4-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcts%2Fconnect4-cli/lists"}