{"id":18952575,"url":"https://github.com/jdan/nim","last_synced_at":"2026-03-29T11:30:18.375Z","repository":{"id":14611915,"uuid":"17329194","full_name":"jdan/nim","owner":"jdan","description":"The game of nim running over telnet","archived":false,"fork":false,"pushed_at":"2014-03-02T02:29:11.000Z","size":116,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-01T02:41:32.861Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jdan.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":"2014-03-02T02:20:23.000Z","updated_at":"2020-06-10T06:37:39.000Z","dependencies_parsed_at":"2022-08-30T12:50:54.453Z","dependency_job_id":null,"html_url":"https://github.com/jdan/nim","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/jdan%2Fnim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdan%2Fnim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdan%2Fnim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdan%2Fnim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdan","download_url":"https://codeload.github.com/jdan/nim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239952598,"owners_count":19723922,"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-08T13:33:58.844Z","updated_at":"2026-03-29T11:30:18.325Z","avatar_url":"https://github.com/jdan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## nim\n\nThe game of nim, written in node\n\n### Server\n\nTo run the server:\n\n```\n$ node index.js\nStarting game server...\n```\n\nBy default the game runs on port 8080.\n\n### Client\n\nYou play this game through `telnet`.\n\n```\n$ telnet localhost 8080\nTrying 127.0.0.1...\nConnected to localhost.\nEscape character is '^]'.\nWaiting for one more...\n```\n\nOnce another client connects...\n\n```\nWelcome!\nThe current state is:\n1 4 2\nIt's your turn!\n\u003e\n```\n\n### Making Moves\n\nA move in nim consists of taking one or more coins from a given pile. If\nthere are no available moves, the current player loses.\n\nTo player, enter two numbers:\n\n* The pile which you want to pick from (starting at 1)\n* The amount of coins you want to take\n\nFor example:\n\n```\nThe current state is:\n1 4 2\nIt's your turn!\n\u003e 2 4\nThe current state is:\n1 0 2\n```\n\n### TODO\n\n* Handle disconnects gracefully\n\n### License\n\nMIT \u0026copy; [Jordan Scales](http://jordanscales.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdan%2Fnim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdan%2Fnim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdan%2Fnim/lists"}