alexandriaa 861d5df190 Refactor deck saving logic and add deck name dialog
- Updated MainViewModel to handle deck name input through a dialog when saving a new deck.
- Implemented logic to check if a deck is being edited or created, and call the appropriate save or update method.
- Removed the old prompt for deck name method and replaced it with a new DeckNameDialog for better user experience.
- Added a new DeckNameDialog.xaml and DeckNameDialog.xaml.cs to manage deck name input and validation.
- Enhanced DeckBuilderView with a Save button for saving decks.
- Updated GameView to improve card display using ItemsControl for better layout and interaction.
- Changed MenuView button text from "Deck Builder" to "Deck Selection" for clarity.
2026-04-06 19:09:44 -04:00
2026-04-05 22:58:48 -04:00

Magical Deckbuilder

A WPF card game where you combine cards, build decks, and battle opponents.

Features

  • Card Combining: Merge blank cards with elements to create unique cards
  • Deck Building: Build custom decks from your card collection
  • Battle System: Turn-based combat against AI opponents
  • 8 Card Types: Spell, Creature, Artifact, Enchantment, Weapon, Armor, Event, Blank
  • 8 Elements: Radioactivity, Flesh, Toxin, Fungus, Thermodynamics, Time, Food, Eldritch
  • Rarity System: Common, Uncommon, Rare, and Legendary cards

Project Structure

MagicalDeckbuilder.Shared/    # Core game library
  Cards/          - Card classes and types
  Decks/          - Deck management
  Game/           - Game logic, CardFactory, OpponentAI
  Combining/      - Card combining system
  Logging/        - Error logging

NewGame.UI/                  # WPF application
  Views/          - MenuView, GameView, BattleSelectView, etc.
  ViewModels/     - MVVM ViewModels
  Controls/       - Custom UI controls
  Converters/     - Value converters
  Styles/         - XAML styles and themes

Building

dotnet build

Running

dotnet run --project NewGame.UI

Requirements

  • .NET 9.0
  • Windows
S
Description
No description provided
Readme 4.3 MiB
Languages
C# 99.8%
PowerShell 0.2%