sweattk/jest-another-rpg

Create a Game object, which will be responsible for the game logic. It will be used to keep track of whose turn it is, prompt the user for input, and check to see if the game has been won.

Opened this issue · 0 comments

All game logic is encompassed by a Game() constructor function.

A Game object has the following properties:

roundNumber

isPlayerTurn

enemies

currentEnemy

player

A Game object has the following methods:

initializeGame()

battle()

checkEndOfBattle()

startNewBattle()