From 9395b2192ee763a3a351f3333de6c05b37505ae7 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Sun, 7 Apr 2024 16:07:15 -0500 Subject: [PATCH] update item count per game For #17. --- game/game.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/game.go b/game/game.go index 07bab89..3e3eb13 100644 --- a/game/game.go +++ b/game/game.go @@ -5,7 +5,7 @@ // It ends when the challenger wins three rounds or the dealer wins once. // - A round is an instance of gameplay. Both players start each round with // the same HP, and it continues until either player reaches zero. -// - A game is a set of 2-8 shells and 1-4 items delivered to each player. +// - A game is a set of 2-8 shells and 2-5 items delivered to each player. // The challenger always moves first at the start of each game. package game @@ -69,7 +69,7 @@ func (g *Match) NextRound() { // NextGame starts the next game of a round. func (g *Match) NextGame() { - items := rand.IntN(4) + 1 + items := rand.IntN(4) + 2 g.players[0].startGame(items) g.players[1].startGame(items) shells := rand.IntN(6) + 2