mirror of
https://github.com/alexandria121/new.git
synced 2026-07-01 09:24:24 -04:00
861d5df19015eb45062be056db86df07a445d7a4
- 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.
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
Description
Languages
C#
99.8%
PowerShell
0.2%