can anyone help me with this c++ program? its a little much but i would really appreciate it
Project specifications:
Create a 2-player game that utilizes the “a s d f” and “4 5 6 8” keys on your keyboard.
It would be a modified rock, paper, and scissors game, and adapted to be a boxing game. The rules are simple
If both players throw the same kind of punches (both uppercuts, a left or right are both equal) they punch each other
An uppercut is defeated by a right
A right is defeated by a straight
A straight is defeated by a left
A left is defeated by an uppercut
A straight and uppercut hit each other
The controls are the following:
Player 1:
A = Left hook, D = Right hook, S = Uppercut, W = Left Straight
Player 2:
4 = Left hook, 6 = Right hook, 5 = Uppercut, 8 = Left Straight
The game must be able to wait for keyboard presses, check the values, and score it accordingly. Both players must be able to press a key at the same time and it would be stored.
The game would continue until one player is knocked out (implement a delay after each “round”), and each win is worth 10 damage.
Your game must utilize a player structure that will store the player life (100 by default), and store the current action of the player (whether hook, uppercut, etc)
Your program must be modular. That means there must be some functions to make your program shorter.
You must be able to save who won per game into a text file so that each win is recorded. (the win is not the round win, but when the person is knocked out)