-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from Ian-Inizias/TarotCards
TarotCard.cs + Playoffs final
- Loading branch information
Showing
34 changed files
with
435 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@page "/Fortune/MinorWheelOfFortune" | ||
@using BasketLeague2.Utils.Models | ||
@using BasketLeague2.Utils.Utils | ||
|
||
<PageTitle>Wheel of Fortune</PageTitle> | ||
|
||
<Button Color="Color.Info" Clicked="RollTheWheel">Roll the Wheel of Fortune</Button> | ||
|
||
<Table Striped> | ||
<TableHeader ThemeContrast="ThemeContrast.Light"> | ||
<TableRow> | ||
<TableHeaderCell>TIRO DOBLE</TableHeaderCell> | ||
<TableHeaderCell>TIRO TRIPLE</TableHeaderCell> | ||
<TableHeaderCell>FÍSICO</TableHeaderCell> | ||
<TableHeaderCell>PLAYMAKING</TableHeaderCell> | ||
<TableHeaderCell>REBOTE</TableHeaderCell> | ||
<TableHeaderCell>DEFENSA</TableHeaderCell> | ||
</TableRow> | ||
</TableHeader> | ||
<TableBody> | ||
<TableRow> | ||
<TableRowCell>@_player.InsideScoring</TableRowCell> | ||
<TableRowCell>@_player.OutsideScoring</TableRowCell> | ||
<TableRowCell>@_player.Athleticism</TableRowCell> | ||
<TableRowCell>@_player.Playmaking</TableRowCell> | ||
<TableRowCell>@_player.Rebounding</TableRowCell> | ||
<TableRowCell>@_player.Defending</TableRowCell> | ||
</TableRow> | ||
</TableBody> | ||
</Table> | ||
|
||
@code { | ||
|
||
private Player _player = new(); | ||
|
||
private void RollTheWheel() | ||
{ | ||
_player = new Player(); | ||
|
||
_player.PlayerRoulette(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
@page "/Fortune/WheelOfFortune" | ||
@using BasketLeague2.Utils.Models | ||
@using Newtonsoft.Json | ||
|
||
<PageTitle>Wheel of Fortune</PageTitle> | ||
|
||
<Button Color="Color.Info" Clicked="RollTheWheel">Roll the Wheel of Fortune</Button> | ||
|
||
@if (_tarotCard is not null) | ||
{ | ||
<Row VerticalGutter="16"> | ||
<Column ColumnSize="ColumnSize.Is4.Is4.WithOffset"> | ||
<Card> | ||
<Row HorizontalGutter="16"> | ||
<Column ColumnSize="ColumnSize.Is6"> | ||
<CardImage Source="@($"assets/images/tarotCards/RWS_Tarot_{_tarotCard.Number}.jpg")" Alt="Tarot card" Class="card-image-full"/> | ||
</Column> | ||
<Column ColumnSize="ColumnSize.Is6"> | ||
<CardBody> | ||
<CardTitle TextAlignment="TextAlignment.Center" TextTransform="TextTransform.Uppercase" TextWeight="TextWeight.Bold" Size="5">@_tarotCard.Name</CardTitle> | ||
<Divider/> | ||
<CardText>@_tarotCard.Description</CardText> | ||
<Divider/> | ||
<CardText Italic="true">@_tarotCard.Detailed</CardText> | ||
</CardBody> | ||
</Column> | ||
</Row> | ||
</Card> | ||
</Column> | ||
</Row> | ||
} | ||
|
||
<h3> Tarot cards </h3> | ||
|
||
<Row HorizontalGutter="32" VerticalGutter="16"> | ||
@foreach (var card in TarotCard.MajorArcana) | ||
{ | ||
<Column ColumnSize="ColumnSize.Is2"> | ||
<Card> | ||
<CardImage Source="@($"assets/images/tarotCards/RWS_Tarot_{card.Number}.jpg")" Alt="Tarot card" Class="card-image-full"/> | ||
<CardBody> | ||
<CardTitle TextAlignment="TextAlignment.Center" TextTransform="TextTransform.Uppercase" TextWeight="TextWeight.Bold" Size="5">@card.Name</CardTitle> | ||
<CardText Italic="true">@card.Description</CardText> | ||
</CardBody> | ||
</Card> | ||
</Column> | ||
} | ||
</Row> | ||
|
||
@code { | ||
|
||
private TarotCard? _tarotCard; | ||
|
||
void RollTheWheel() | ||
{ | ||
Random rng = new(); | ||
|
||
var num = rng.Next(0, 22); | ||
|
||
Console.WriteLine(num); | ||
|
||
_tarotCard = TarotCard.MajorArcana.First(t => t.Number == num); | ||
|
||
Console.WriteLine(JsonConvert.SerializeObject(_tarotCard)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.