https://github.com/octonawish-akcodes/magical-arena
https://github.com/octonawish-akcodes/magical-arena
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/octonawish-akcodes/magical-arena
- Owner: octonawish-akcodes
- Created: 2024-06-15T10:25:05.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-06-15T10:25:38.000Z (12 months ago)
- Last Synced: 2025-03-19T03:33:36.157Z (3 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Magical Arena
Magical Arena is a simple text-based game where players engage in magical battles. Players can create their characters with unique attributes and participate in matches against each other.
## Features
- **Player Creation**: Create custom players with unique names, health, strength, and attack attributes.
- **Match Management**: Enter the arena to engage in matches against other players.
- **Match Simulation**: Matches are simulated based on player attributes, with rounds conducted until one player's health reaches zero.
- **Color-Coded Interface**: The game features a color-coded terminal interface for better visual experience.## Usage
Run the `main.go` file to start the game.
```bash
go run main.go
```## Dependencies
- This project relies on the standard Go packages for basic functionalities.
- Color-coding in the terminal interface is achieved using ANSI escape codes.## Game workflow
```mermaid
graph TD
StartGame --> MainMenu
MainMenu --> |Enter Arena| EnterArena
MainMenu --> |Exit Game| ExitGame
EnterArena --> |Start Match| StartMatch
EnterArena --> |Exit Arena| ExitArena
StartMatch --> CreatePlayers
CreatePlayers --> ConductMatch
ConductMatch --> MatchResult
MatchResult --> ShowResults
ShowResults --> |Return to Arena| EnterArena
ShowResults --> |Exit Arena| ExitArena
ExitArena --> MainMenu
ExitGame --> MainMenu
```