Skip to content
NguyenAnh1421Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

OPERATION — Chiến Dịch Biên Giới 🇻🇳

Game chiến thuật 2 người chơi theo lượt, bản đồ 20×20.

🚀 Deploy lên Railway (KHUYẾN NGHỊ - Miễn phí)

  1. Push repo lên GitHub
  2. Vào railway.app → Login GitHub
  3. New Project → Deploy from GitHub repo → chọn repo này
  4. Settings → Networking → Generate Domain
  5. Nhận URL dạng: https://operation-xxx.up.railway.app
  6. Mở client.html, nhập: wss://operation-xxx.up.railway.app/ws

🌐 Deploy lên Render.com (Miễn phí)

  1. Vào render.com → New Web Service
  2. Connect repo GitHub này
  3. Start Command: python server.py
  4. Nhận URL: wss://ten-app.onrender.com/ws

🖥️ Chạy local

pip install aiohttp
python server.py
# Terminal 2:
ngrok http 8765
# Nhập: wss://xxx.ngrok-free.app/ws

📁 Files

  • server.py — WebSocket server (Python + aiohttp)
  • client.html — Game client (mở bằng trình duyệt)
  • requirements.txt — Dependencies
  • Procfile — Railway/Heroku
  • railway.json — Railway config
  • render.yaml — Render config

🎮 Tính năng

  • Bản đồ 20x20, tọa độ A-T / 1-20
  • 🇻🇳 VN vs 🇨🇳 TQ với ảnh đơn vị thật
  • Bot AI 3 cấp độ
  • Ném bom rải thảm (tiêu diệt 5 lính)
  • Chat realtime
  • Âm thanh hiệu ứng
  • Lịch sử trận đấu

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages