dkforest

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

commit 8203c593d01fcc7951e68f66b6f44f73b2b9ca0b
parent 884810037e028676294052f31f677bbb3f5e9661
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 11 Dec 2023 21:57:02 -0500

add doc

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

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -154,6 +154,9 @@ type GameResult struct { Players []*PokerPlayer } +// Get the player index in Ongoing.Players from a seat index (index in PokerGame.Players) +// [nil p1 nil nil p2 nil] -> PokerGame.Players +// [p1 p2] -> Ongoing.Players func (g *Ongoing) getPlayerIdxBySeatIdx(seatIdx int) (idx int) { for i, p := range g.Players { if p.SeatIdx == seatIdx {