GithubHelp home page GithubHelp logo

avengers-infinity-war's Introduction

Building the Application

Under application directory, Avengers Application can be built using following gradle tasks:

  gradlew clean build (windows os)
./gradlew clean build (X-based os)

Checkstyle and Jacoco static code analysis

  gradlew clean jacocoTestReport jacocoTestCoverageVerification
  gradlew clean checkstyleMain checkstyleTest

Running the Application

After building the application, gradle must produce the application jar file under target/libs

 java -jar target/libs/avengers-1.0-SNAPSHOT.jar
 

How to play

Note: Application constains game sound, please be make sure your pc volume is on before running application. First of all, You should create a player. Use cli instructions to create player using by options.

 Welcome to The Avengers Infinity War Game!
 
 1- HUMAN
 2- AWOKEN
 3- EXO
 Select your character race (1, 2 or 3) :1
 
 1- MALE
 2- FEMALE
 Select your character gender (1 or 2) :1
 
 Enter your character name :SUPERMAN

After creating player, you will be able to play game and will see summary of attribute of your player

 Avenger, SUPERMAN (HUMAN/MALE)
 
 healingPower=8, defeatAmount=0
 
 Attribute: health=100.0, strength=4, dexterity=3, intelligence=3, constitution=3, precision(%)=0.7

System will create warriors according to number of enemy constant value.

Character{  race=EXO, name='MARALYN', gender=FEMALE, attribute=Attribute: health=100.0, strength=5, dexterity=2, intelligence=1, constitution=1, precision(%)=0.9, location=Location: 26,14}
Character{  race=AWOKEN, name='TOLVIR', gender=MALE, attribute=Attribute: health=100.0, strength=5, dexterity=1, intelligence=2, constitution=3, precision(%)=0.5, location=Location: 16,8}
Character{  race=AWOKEN, name='TOLVIR', gender=MALE, attribute=Attribute: health=100.0, strength=5, dexterity=1, intelligence=2, constitution=3, precision(%)=0.5, location=Location: 16,12}

After players are created, player will walk on the explorable maps and if player want to fight with warrior, just use directions and go ahead warrior location.

Enter direction (w:north, a:west, s:south, d:east) or press 'q' for quite game : w

...

There is a Warrior, What would you like to do?
1- Fight
2- Run
Chose your option (1 or 2) : 1

Here is a sample fight between your player and warrior.

SUPERMAN        VS      TAUREN
1 ->2 ->3 -> Fight!!!
You will start the first attack!!!
TAUREN hit 12.0 point but TAUREN missed the Attack!!!
You hit 12.0 point but You missed the Attack!!!
TAUREN hit 12.0 point but TAUREN missed the Attack!!!
TAUREN hit 12.0 point but TAUREN missed the Attack!!!
You hit 12.0 point but You missed the Attack!!!
TAUREN hit 12.0 point but TAUREN missed the Attack!!!
You hit 12.0 point but You missed the Attack!!!
TAUREN hit 12.0 point but TAUREN missed the Attack!!!
You hit 12.0 point but You missed the Attack!!!
TAUREN hit 12.0 point but TAUREN missed the Attack!!!
You hit 12.0 point but You missed the Attack!!!
TAUREN hit 12.0 point but TAUREN missed the Attack!!!
You hit 12.0 point but You missed the Attack!!!
TAUREN hit 12.0 point but TAUREN missed the Attack!!!
You hit 12.0 point but You missed the Attack!!!
TAUREN hit 12.0 point but TAUREN missed the Attack!!!
TAUREN hit 12.0 point but TAUREN missed the Attack!!!
TAUREN hit 12.0 point but TAUREN missed the Attack!!!
Enemy (TAUREN) is down!!!  Your Health remained 84.0
Location: 6,2 - Level: 1 -  Defeat: 1 - Health: 84.0

If you want to quit and continue game later, you can save the game.

Enter direction (w:north, a:west, s:south, d:east) or press 'q' for quite game : q

Would you like to save the game? Please press 'y' to save the game?
y

Avengers game engine has been stopped.

After restarting the application, you will see following options

Welcome to The Avengers Infinity War Game!
1- NEW GAME
2- LOAD GAME
Chose your option (1 or 2) :
2

Resumed application map

#  #  #  #  #  .  .  .  .  .  .  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  .  .  .  .  .  .  .  .  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  .  .  X  .  .  .  .  .  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  .  .  .  #  #  #  #  #  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  .  .  .  .  .  #  #  #  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  .  .  .  .  .  .  #  #  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  #  .  .  .  .  .  #  #  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  #  #  #  .  .  .  #  #  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  .  .  .  .  .  .  #  #  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  W  .  .  .  .  .  .  #  #  #  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  .  .  .  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  .  .  .  .  .  A  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  .  .  .  .  .  .  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  .  .  .  .  .  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  #  #  #  .  .  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  #  #  #  .  .  .  .  .  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  #  #  #  #  .  .  W  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  
#  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  #  # 

avengers-infinity-war's People

Contributors

isakalinsaz avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.