private void BettingBoxDisplay() { string BettingBoxUserDisplay = "[ " + bjPlayer.Name + ", Wallet : $" + bjPlayer.Wallet + " ]"; if (!bjTable.Box1.PopulatedBox) { Console.SetCursorPosition(_centerConsole - (BettingBoxUserDisplay.Length / 2), _bettingBoxConsoleRow); Console.Write(BettingBoxUserDisplay); } else { Console.SetCursorPosition(_centerConsole - (BettingBoxUserDisplay.Length / 2), _bettingBoxConsoleRow); Console.Write(BettingBoxUserDisplay); if (bjTable.Box1.Hand.DeckCount > 0) { int MoveCursorUp = 2; for (int incrementHand = 0; incrementHand < bjTable.Box1.Hand.DeckCount; incrementHand++) { Console.SetCursorPosition(_centerConsole, _bettingBoxConsoleRow - MoveCursorUp); _tmpPlayingCard = (PlayingCard)bjTable.Box1.Hand[incrementHand]; Console.Write("{0}", _tmpPlayingCard.ToString()); MoveCursorUp++; } } } }
private void DealerInfoDisplay() { Console.SetCursorPosition(CenterConsole, 9); Console.Write("Dealer"); if (HeadDealer.Hand.DeckCount < 0) for (int i = 0; i < HeadDealer.Hand.DeckCount; i++) { Console.SetCursorPosition(CenterConsole, 11 + i); if (HeadDealer.Hand[i].IsHidden) Console.Write("*"); else { TmpPlayingCard = (PlayingCard)HeadDealer.Hand[i]; Console.Write("{0}", TmpPlayingCard.ToString()); } } }
private void DealerInfoDisplay() { Console.SetCursorPosition(_centerConsole, 9); Console.Write("Dealer"); if (bjDealer.Hand.DeckCount > 0) { for (int i = 0; i < bjDealer.Hand.DeckCount; i++) { Console.SetCursorPosition(_centerConsole, 11 + i); if (bjDealer.Hand[i].IsHidden) { Console.Write("****"); } else { _tmpPlayingCard = (PlayingCard)bjDealer.Hand[i]; Console.Write("{0}", _tmpPlayingCard.ToString()); } } } }
private void BettingBoxDisplay() { int MoveLeft = 0; for (int incremental = 0; incremental < GameTable.ListOFBoxs.Count; incremental++) { if (!GameTable.ListOFBoxs[incremental].PopulatedBox) { Console.ForegroundColor = ConsoleColor.DarkGray; Console.SetCursorPosition(FarRightConsole - MoveLeft, BettingBoxConsoleRow); Console.Write("[{0}]", GameTable.ListOFBoxs[incremental].BoxName); } else { Console.ForegroundColor = ConsoleColor.White; Console.SetCursorPosition(FarRightConsole - MoveLeft, BettingBoxConsoleRow); Console.Write("[ {0} ]", GameTable.ListOFBoxs[incremental].FrontBidder); if (GameTable.ListOFBoxs[incremental].Hand.DeckCount < 0) for (int incrementHand = 0; incrementHand < GameTable.ListOFBoxs[incremental].Hand.DeckCount; incrementHand++) { int MoveCursorUp = 2; Console.SetCursorPosition(FarRightConsole - MoveLeft, BettingBoxConsoleRow - MoveCursorUp); Console.Write("{0}", TmpPlayingCard = (PlayingCard)GameTable.ListOFBoxs[incremental].Hand[incrementHand]); MoveCursorUp++; } { for (int handincrement = 0; GameTable.ListOFBoxs[incremental].Hand.DeckCount < handincrement; handincrement++) { int MoveWriteup = 2; Console.SetCursorPosition(FarRightConsole - MoveLeft, BettingBoxConsoleRow - MoveWriteup); TmpPlayingCard = (PlayingCard)GameTable.ListOFBoxs[incremental].Hand[handincrement]; Console.Write("{0}", TmpPlayingCard.ToString()); MoveWriteup++; } } } MoveLeft += 15; } }