Question: don't implement static methods other than the main method please answer in java Create an e vs o game. Make the program consist of -
don't implement static methods other than the main method
please answer in java
Create an e vs o game. Make the program consist of
- A 10 x 10 grid
-Movement = Move if not adjacent to an enemy, If near an enemy, attack them
'O' = Orcs move down-right (has 15 hp and does 3 damage to E)
'E' = Elves move up-left (has 10 hp and does 7 damage to O)
Start of game: Display the world, players move once, Entities attack their enemies once, Remove unconscious entities (HP
End of Turn Game Over Conditions: 1 and more Elves alive, 0 Orcs alive = E wins
0 Elves alive, 1+ Orcs alive = orcs win
No Entities alive = draw, No attacks within the last 10 turns = ceasefire
game development: orcs and elves will keep moving appropriately until they're adjacent to each other, then they will attack
sample output:





ITTTTTTTTT ||| | | LIL II LIL I EL Press enter to continue: |||| ||| Press enter to continue | 0 Press enter to continue: 10| TEL Press enter to continue: |E|L 10 l Press enter to continue: Elves win! |E||| ITTTTTTTTT ||| | | LIL II LIL I EL Press enter to continue: |||| ||| Press enter to continue | 0 Press enter to continue: 10| TEL Press enter to continue: |E|L 10 l Press enter to continue: Elves win! |E|||
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
