A card game where players need to use their cards to form valid mathematical equations. The game combines strategy, mathematics, and fun!
Play now at: https://tri.iling.fun/
- Mathematical equation validation
- Card-based gameplay mechanics
- Modern and responsive UI
- Docker support for easy deployment
- Automated builds with GitHub Actions
- Pull the latest image from GitHub Container Registry:
# Pull the image
docker pull ghcr.io/shepherdwind/tri-facta:latest
- Create a
docker-compose.yml
file with the following content:
version: '3.8'
services:
app:
image: ghcr.io/shepherdwind/tri-facta:latest
ports:
- '80:80'
restart: unless-stopped
- Start the application:
docker-compose up -d
- Access the game at
http://localhost
- Clone the repository:
git clone https://github.com/shepherdwind/tri-facta.git
cd tri-facta
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Access the game at
http://localhost:5173
- Node.js 18 or higher
- npm 9 or higher
- Build the application:
npm run build
- Preview the production build:
npm run preview
The Docker images are automatically built and published to GitHub Container Registry (ghcr.io) using GitHub Actions. Images are available at:
- Latest version:
ghcr.io/shepherdwind/tri-facta:latest
- Specific version:
ghcr.io/shepherdwind/tri-facta:v1.0.0
(replace with actual version) - Branch builds:
ghcr.io/shepherdwind/tri-facta:main
(or other branch names)
The following events trigger automatic Docker image builds:
- Push to main branch
- Creation of version tags (e.g., v1.0.0)
- Pull requests to main branch
To build and push a new Docker image locally:
# Build and push latest version
./build.sh
# Build and push specific version
./build.sh v1.0.0
To pull a specific version of the image:
# Pull using the pull script
./pull.sh
# Or manually pull
docker pull ghcr.io/shepherdwind/tri-facta:latest
- Each player starts with a set of cards
- Players take turns to play cards
- Cards must form valid mathematical equations
- The first player to use all their cards wins
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.