Ciccio1307 / FootBallinLine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FootBallinLine

Introduction

Is an example of OOP coding , it was my idea of a new view of Football using by C++ Lenguages . This project was one of all exercises for a future OOP exam


How works?

The game consists of a football simulation of two randomly created football teams where each team consists of 5 attackers and 5 defenders that clash with each other. We have an abstract class called Player , we use an template as well for future feauture

image

GetAction() method will be the method to return the value of the attack or defense. Its value will be calculated within the constructor of the two subclasses.

image


We have two underclass for the Attack and Defence


In a main you generate two teams of 10 elements, 5 attackers and 5 defenders using the sequence of values chosen by the user. Create a turn-based game where two random elements are chosen ,one attacker from one team and one defender from the other. If the attacker has a higher attack value than the other team’s defensive value, he scores. The first team to score 3 goals wins

Next Request :

  1. display the collection by overloading the operator <<

  2. Average attack and defence

  3. Implement member operator overloading [] to perform a transfer in one of the two teams

NOTE

The readme is not completed , coming soon

FEAUTURE

My idea a good profiling and i 'll make a league Project Dev : 15/03/2022

About


Languages

Language:C++ 100.0%