richardspirit / mtga_stats

Originated as way to manage Magic The Gathering decks on MGTA so that I knew which decks were performing the best and which decks should be deleted.
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Expand Deck Details #38

Closed richardspirit closed 3 years ago

richardspirit commented 3 years ago

Add new details to deck to separate Instants/Sorcery/Enchantment/Artifacts Also, show basic lands vs other lands and number of cards per color.

richardspirit commented 3 years ago

Use something similar to this to better display deck details // Set key/value pairs using typical name[key] = val m["k1"] = fmt.Sprintf("%-25s", "New Deck") m["k2"] = fmt.Sprintf("%0s", "New Game") m["k3"] = fmt.Sprintf("%-25s", "View Deck Records") m["k4"] = fmt.Sprintf("%0s", "View Game Count") m["k5"] = fmt.Sprintf("%-25s", "View Decks") m["k6"] = fmt.Sprintf("%0s", "Top Ten Decks") m["k7"] = fmt.Sprintf("%-25s", "Edit/Delete Deck") m["k8"] = fmt.Sprintf("%0s", "Win/Lose Percent") m["k9"] = fmt.Sprintf("%-25s", "Analysis") m["k10"] = fmt.Sprintf("%0s", "Favorites") m["k11"] = fmt.Sprintf("%-24s", "Import Set Data") m["k12"] = fmt.Sprintf("%0s", "Quit")

// print menu options
fmt.Println("1:", m["k1"]+" 2:", m["k2"])
fmt.Println("3:", m["k3"]+" 4:", m["k4"])
fmt.Println("5:", m["k5"]+" 6:", m["k6"])
fmt.Println("7:", m["k7"]+" 8:", m["k8"])
fmt.Println("9:", m["k9"]+"10:", m["k10"])
fmt.Println("11:", m["k11"]+"12:", m["k12"])
richardspirit commented 3 years ago

Still need to change import of cards to populate columns