FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
bmitchinson

bmitchinson

kebede-and-ben-test

Public
Like
kebede-and-ben-test
Home
Code
4
backend
3
frontend
3
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
index.ts
https://bmitchinson--2a93193e4e0011f0b4fa76b3cceeab13.web.val.run
README.md

Tic Tac Toe Game

A multiplayer tic-tac-toe game where two players can play against each other in real-time.

Features

  • Two-player gameplay
  • Real-time game state updates
  • Game history tracking
  • Clean, responsive UI
  • Automatic win detection

Project Structure

├── backend/
│   ├── index.ts           # Main Hono server
│   ├── database/
│   │   ├── migrations.ts  # Database schema
│   │   └── queries.ts     # Game queries
│   └── routes/
│       └── game.ts        # Game API routes
├── frontend/
│   ├── index.html         # Main page
│   ├── components/
│   │   ├── App.tsx        # Main React app
│   │   ├── GameBoard.tsx  # Game board component
│   │   └── GameStatus.tsx # Game status display
│   └── style.css          # Custom styles
└── shared/
    └── types.ts           # Shared TypeScript types

How to Play

  1. Visit the website
  2. Player X starts first
  3. Click on any empty cell to make your move
  4. Players alternate turns
  5. First to get 3 in a row (horizontal, vertical, or diagonal) wins!
  6. Click "New Game" to start over

API Endpoints

  • GET /api/game/:gameId - Get game state
  • POST /api/game - Create new game
  • PUT /api/game/:gameId/move - Make a move
  • GET /api/games - List recent games
HTTP
  • index.ts
    bmitchinson--2a…13.web.val.run
Code
backendfrontendsharedREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.