parent
c8db9d1959
commit
9395b2192e
@ -5,7 +5,7 @@
|
|||||||
// It ends when the challenger wins three rounds or the dealer wins once.
|
// 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
|
// - A round is an instance of gameplay. Both players start each round with
|
||||||
// the same HP, and it continues until either player reaches zero.
|
// 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.
|
// The challenger always moves first at the start of each game.
|
||||||
package game
|
package game
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ func (g *Match) NextRound() {
|
|||||||
|
|
||||||
// NextGame starts the next game of a round.
|
// NextGame starts the next game of a round.
|
||||||
func (g *Match) NextGame() {
|
func (g *Match) NextGame() {
|
||||||
items := rand.IntN(4) + 1
|
items := rand.IntN(4) + 2
|
||||||
g.players[0].startGame(items)
|
g.players[0].startGame(items)
|
||||||
g.players[1].startGame(items)
|
g.players[1].startGame(items)
|
||||||
shells := rand.IntN(6) + 2
|
shells := rand.IntN(6) + 2
|
||||||
|
Loading…
Reference in New Issue
Block a user