1
0
Fork 0
mirror of https://github.com/SuveenE/codenames-ai.git synced 2026-04-27 02:15:51 +03:00
No description
Find a file
2025-12-07 11:12:06 +08:00
.github/workflows Remove github pages workflow 2025-01-01 22:03:01 -08:00
.vscode Add workflows 2025-01-01 21:49:25 -08:00
app Update 2025-01-20 16:14:55 -08:00
components Add api key support 2025-01-20 16:12:07 -08:00
data Update UI 2025-01-16 23:46:59 -08:00
lib Initial setup 2025-01-01 20:56:54 -08:00
public Update 2025-01-01 21:35:52 -08:00
types Update UI 2025-01-16 00:09:46 -08:00
utils Add api key support 2025-01-20 16:12:07 -08:00
.env.example Add mobile UI 2025-01-15 20:55:26 -08:00
.eslintrc.json Initial commit from Create Next App 2025-01-01 11:41:19 -08:00
.gitignore Update customGameDialog 2025-01-05 20:51:47 -08:00
components.json Initial setup 2025-01-01 20:56:54 -08:00
LICENSE Add License 2025-01-26 22:44:13 -08:00
next.config.mjs Initial commit from Create Next App 2025-01-01 11:41:19 -08:00
package-lock.json Bump nextjs version 2025-12-07 11:12:02 +08:00
package.json Bump nextjs version 2025-12-07 11:12:02 +08:00
postcss.config.mjs Initial commit from Create Next App 2025-01-01 11:41:19 -08:00
README.md Update README.md 2025-03-02 15:01:56 -08:00
tailwind.config.ts Initial setup 2025-01-01 20:56:54 -08:00
tsconfig.json Initial commit from Create Next App 2025-01-01 11:41:19 -08:00

GitHub stars License Twitter Follow

Codenames AI

I got OpenAI o1 to play Codenames and it's super good.

You can get AI to play your own games at codenames.suveenellawela.com

Here's a short blog post I published with my findings (7000+ views). And the blog post got featured on Hacker News ranking #7 at its peak. There were a lot of interesting comments, have a look here.

New to Codenames? Here's a 3-minute video explaining how it works.

Screenshot 2025-01-01 at 20 40 27

Features

  • See AI play a game with random words
  • See AI play a game with a custom set of words and a custom board (If you just finished playing a game, see how AI would have played it)
  • Replay previous games ( Currently this is suppored only for a test game )
  • Add your own API key to use OpenAI models

Custom Game input: Screenshot 2025-01-01 at 20 40 27

The story behind

During our lunch breaks, my colleagues and I have been enjoying games of Codenames. In one round, the clue giver faced the challenge of connecting "carrot" and "ray." At the end of the game, I asked ChatGPT for a suggestion, and it came up with "Orange", a pretty clever clue! My own idea was "Laser."

That got me thinking: how good could AI be at playing Codenames? So, I built this.

Getting Started

First, run the development server:

npm install
npm run dev

Open http://localhost:3000 with your browser to see the result.