dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 7c5c5f3b995169c2a7fdea31da9089bdcf0830cb
parent 01452f637d40d939ea0a7c582589d48c9196d3ac
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue,  5 Dec 2023 22:43:44 -0500

cleanup

Diffstat:
Mpkg/web/handlers/poker/poker.go | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -457,7 +457,6 @@ func dealerThread(g *PokerGame, roomID string) { END: - // TODO: evaluate hands, and crown winner var winner *PokerPlayer var winnerHand string var minScore int32 = math.MaxInt32 @@ -473,7 +472,6 @@ END: poker.NewCard(cardToPokerCard(p.Cards[1].Name)), } e := poker.Evaluate(hand) - fmt.Println(p.Username, e, poker.RankString(e)) if e < minScore { winner = p minScore = e @@ -481,7 +479,7 @@ END: } } } - fmt.Println("WINNER", winner) + winner.Cash += g.Ongoing.MainPot g.Ongoing.MainPot = 0