Skip to content

This repository has the code of Hogwarts Battle written in Cpp. it's the final software project of the training phase in MIA technical team.

Notifications You must be signed in to change notification settings

eslamdyab21/Hogwarts-Battle-Cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hogwarts Battle

During the Big Battle that occurred in Hogwarts, Voldemart asked Harry Potter for a one to one wizard fight. Harry set off on what he knew would be a suicide mission, to allow Voldemort to strike him with an Avada Kedavra spell in the forest just to kill the one of the two remaining horcruxes. Upon going gentle into that good night, Harry awakened in what appeared to be a milky white vision of King's Cross Station, where he'd hopped onto Platform 93⁄4 so many times before. Dumbledore awaited him with news that he'd successfully killed off the part of Voldemort that remained inside of him in the process of dying, and that he had a choice to board a train back to the realm of the living or to just move on ... to where, he didn't say. Harry, knowing his battle wasn't done, opted for the former.


Voldemart and Harry Potter cast the spells at the same time. Both of them have properties (helath, energy and shield) to cast the spell or even to defend the enemy’s spell. They have commun spells and each one of those wizards has special spells too.

More details are provided in the pdf.

Two Scenarios of Code Outputs


Enter the two spells (H then V): Crucio Crucio
Harry Voldmort
Health: 100 100
Energy: 460 460
Enter the two spells (H then V): Reducto Taboo
Harry Voldmort
Health: 80 100
Energy: 400 380
Enter the two spells (H then V): sheild AvadaKedavra
Harry Voldmort
Health: 80 100
Energy: 400 280
Enter the two spells (H then V): Reducto Confringo
Harry Voldmort
Energy: 340 225
Enter the two spells (H then V): Imperio AvadaKedavra
Harry Voldmort
Health: 0 95
Energy: 320 125
Voldmort is the winner



Enter the two spells (H then V): Crucio Crucio
Harry Voldmort
Health: 100 100
Energy: 460 460
Enter the two spells (H then V): Reducto Taboo
Harry Voldmort
Health: 80 100
Energy: 400 380
Enter the two spells (H then V): sheild AvadaKedavra
Harry Voldmort
Health: 80 100
Energy: 400 280
Enter the two spells (H then V): Reducto Confringo
Harry Voldmort
Health: 80 95
Energy: 340 225
Enter the two spells (H then V): Imperio Taboo
Harry Voldmort
Health: 20 95
Energy: 320 145
Enter the two spells (H then V): Fiendfyre AvadaKedavra
Harry Voldmort
Health: 0 95
Energy: 270 45
Voldmort is the winner

About

This repository has the code of Hogwarts Battle written in Cpp. it's the final software project of the training phase in MIA technical team.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages