{"id":17968542,"url":"https://github.com/thomasahle/codenames","last_synced_at":"2026-03-12T04:31:34.335Z","repository":{"id":143312739,"uuid":"123297612","full_name":"thomasahle/codenames","owner":"thomasahle","description":"Codenames AI using Word Vectors","archived":false,"fork":false,"pushed_at":"2023-12-07T07:59:49.000Z","size":14039,"stargazers_count":48,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T16:36:15.966Z","etag":null,"topics":["ai","cli","codenames","game","nlp","word-embeddings","word2vec"],"latest_commit_sha":null,"homepage":"https://codewords.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomasahle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-28T14:39:05.000Z","updated_at":"2024-03-21T21:49:34.000Z","dependencies_parsed_at":"2024-10-29T15:03:37.324Z","dependency_job_id":null,"html_url":"https://github.com/thomasahle/codenames","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thomasahle/codenames","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasahle%2Fcodenames","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasahle%2Fcodenames/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasahle%2Fcodenames/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasahle%2Fcodenames/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasahle","download_url":"https://codeload.github.com/thomasahle/codenames/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasahle%2Fcodenames/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30415472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T04:25:42.844Z","status":"ssl_error","status_checked_at":"2026-03-12T04:25:34.624Z","response_time":114,"last_error":"SSL_read: 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":["ai","cli","codenames","game","nlp","word-embeddings","word2vec"],"created_at":"2024-10-29T14:40:39.854Z","updated_at":"2026-03-12T04:31:34.303Z","avatar_url":"https://github.com/thomasahle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Play Codenames with Glove\n=========================\n\nThis repository implements a simple single-player version of the codenames game\nby Vlaada Chvátil.\nYou can play as the agent or the spymaster, and the Glove word vectors will\ntake the role of your partner, as you try to find the 8 marked words in as few\nrounds as possible.\n\n\u003cpre\u003e\n$ \u003cb\u003egit clone git@github.com:thomasahle/codenames.git\u003c/b\u003e\n...\n\n$ \u003cb\u003esh get_glove.sh\u003c/b\u003e\n...\n\n$ \u003cb\u003epython3 codenames.py\u003c/b\u003e\n...Loading vectors\n...Loading words\n...Making word to index dict\n...Loading codenames\nReady!\n\nWill you be agent or spymaster?: \u003cb\u003eagent\u003c/b\u003e\n\n     buck       bat   pumpkin    charge      iron\n     well      boot     chick superhero     glove\n   stream   germany      sock    dragon scientist\n     duck     bugle    school       ham   mammoth\n   bridge      fair  triangle   capital      horn\n\nThinking....................\n\nClue: \"golden 6\" (certainty 7.78, remaining words 8)\n\nYour guess: \u003cb\u003ebridge\u003c/b\u003e\nCorrect!\n\u003c/pre\u003e\n\nHow it works\n============\nThe bot decides what words go well together, by comparing their vectors in the GloVe trained on Wikipedia text.\nThis means that words that often occour in the same articles and sentences are judged to be similar.\nIn the example about, golden is of course similar to bridge by association with the Golden Gate Bridge.\nOther words that were found to be similar were 'dragon', 'triangle', 'duck', 'iron' and 'horn'.\n\nHowever, in Codenames the task is not merely to find words that describe other words well.\nYou also need to make sure that 'bad words' are as different as possible from your clue.\nTo achieve this, the bot tries to find a word that maximizes the similarity gap between the marked words and the bad words.\n\nIf you want the bot to be more aggressive in its clues (choosing larger groups), try changing the `agg = .5` value near the top of `codenames.py` to a larger value, such as `.8` or `1.5`. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasahle%2Fcodenames","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasahle%2Fcodenames","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasahle%2Fcodenames/lists"}