Skip to content

fighting game for the terminal. 3rd OpenClassrooms assignement.

Notifications You must be signed in to change notification settings

t8lv4/terminalCombat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 

Repository files navigation

What is terminalCombat ?

terminalCombat is a fighting game for two players.

it's meant to be played on a terminal.

How do you play terminalCombat ?

download terminalCombat

in the terminal :

$ cd where/the/file/is/downloaded
$ unzip terminalCombat
$ open terminalCombat

you'll be prompted to enter the name of the players !

What are the rules of terminalCombat ?

players set up a team of three members. they can choose from a list of four character's types :

  • a fighter has 100 life points and 10 strength points
  • a giant has 140 life points and 5 strength points
  • a dwarf has 60 life points and 20 strength points
  • a wizard has 80 life points and 10 strength points

once set up is done, a player choose to fight a member of the other team or to heal a member of his team.

  • a player choose to fight : he'll be promped to choose a fighter (he can't fight with a wizard) and an opponent (wizards included). the strength points of the fighter is subtracted from the life points of the opponent.
  • a player choose to heal : he'll be prompted to choose a fighter to cure. the strength points of the wizard is added to the life points of the chosen fighter. the wizard can't cure himself.

from time to time, a special gift pops up. it doubles the fighter or the wizard strength points during the round.

the game ends and a winner is declared when there are no life points left in a team.

--

also, there is an easter egg.