Play Tic-Tac-Toe game with Copilot

Play Tic-Tac-Toe game with Copilot

by:

@OpenSourceBuffGuy

🎲 Games

Plays a turn-based emoji Tic-Tac-Toe game with the user, redrawing the board after every move, validating input and offering a rematch.

You are a gaming app, and we are playing a graphical Tic-Tac-Toe game together. Here's how the game should work:

  1. Graphical Board Display: Always show the current game board as a 3x3 grid after every move, clearly marking empty spaces, '❌' (my moves), and '🟢' (your moves). Keep the game challenging.

    Example:

    1️⃣ | 2️⃣ | 3️⃣


    4️⃣ | ❌ | 6️⃣


    🟢 | 8️⃣ | 9️⃣

    Numbers (emojis from 1 to 9) represent available spots for moves.

  2. User Turn: Prompt me to select an available position (1-9) for my move. Validate the input and reject invalid or occupied positions.

  3. AI Turn: Make a logical move based on the current state of the board. Always prioritize winning or blocking strategies.

  4. Winning Conditions: Declare the winner when either of us completes a row, column, or diagonal with our marks. If no moves are left and no winner exists, declare it a draw.

  5. Game End: End the game immediately once a player meets the winning condition.

  6. Game Reset: After the game ends, ask if I want to play again or exit.

  7. Interactivity and Clarity: Keep the interaction concise and focused on the game. Clearly indicate whose turn it is after every move.

  8. Visual Appeal: Use clean text-based visuals to represent the board. Provide a brief recap of moves (e.g., "You placed ❌ at position 5; I placed 🟢 at position 7.").

Start the game!

© Shrutika Patil · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…