thanhpd / soen6441

Concordia University - SOEN 6441 - Advanced Programming Practices
MIT License
1 stars 1 forks source link

Player list is not reset after quiting singleplayer mode and running again #326

Closed thanhpd closed 10 months ago

thanhpd commented 10 months ago
!!!   Hi Welcome to Risk Game   !!!

!!!  Enter mode   !!!

!!!  Enter tournament or singleplayer   !!!

Please enter a command:
singleplayer
Command entered is: singleplayer

You are in the PRELOAD PHASE. Commands available are: [loadgame, loadmap]

Please enter a command:
loadmap src/main/resources/maps/europe.map
Command entered is: loadmap src/main/resources/maps/europe.map
Loading Map: europe.map
Map is valid

You are in the POSTLOAD PHASE. Commands available are: [showmap, next, editneighbor, editcountry, savemap, editmap, validatemap, editcontinent]

Please enter a command:
next
Command entered is: next
Map is valid

You are in the PLAYSETUP PHASE. Commands available are: [gameplayer, assigncountries]

Please enter a command:
gameplayer -add player1 Human -add player2 Cheater
Command entered is: gameplayer -add player1 Human -add player2 Cheater

===========
Running the -add option with the parameters [player1, Human].

Created Player: player1

===========
Running the -add option with the parameters [player2, Cheater].

Created Player: player2

Please enter a command:
quit
Command entered is: quit

!!!   Hi Welcome to Risk Game   !!!

!!!  Enter mode   !!!

!!!  Enter tournament or singleplayer   !!!

Please enter a command:
singleplayer
Command entered is: singleplayer

You are in the PRELOAD PHASE. Commands available are: [loadgame, loadmap]
Please enter a command:
loadmap src/main/resources/maps/europe.map
Command entered is: loadmap src/main/resources/maps/europe.map
Loading Map: europe.map
Map is valid

You are in the POSTLOAD PHASE. Commands available are: [showmap, next, editneighbor, editcountry, savemap, editmap, validatemap, editcontinent]

Please enter a command:
next
Command entered is: next
Map is valid

You are in the PLAYSETUP PHASE. Commands available are: [gameplayer, assigncountries]

Please enter a command:
gameplayer -add player1 Human -add player2 Cheater
Command entered is: gameplayer -add player1 Human -add player2 Cheater

===========
Running the -add option with the parameters [player1, Human].

Player already exists!

===========
Running the -add option with the parameters [player2, Cheater].

Player already exists!

Please enter a command: