American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

7 PM – Intro To Java – Gamas

March 31, 2022 @ 7:00 pm - 8:00 pm

Today We Do
  1. We finished PetSystem
  2. We started MonsterInheritance project.
Homework
  1. Continue on MonsterInheritance project. Do the following
  2. In the beginning, initialize monsterMap with 3 monsters, look at the example below
  3. Please select from one of the following
    1. Add new monster
    2. List all monsters
    3. Play the game
    Enter your selection (enter "exit" to quit):2
    
    LIST ALL MONSTERS
    - troll - health 50
    - dragon - health 100
    - water golem - health 30
    
    Please select from one of the following
    1. Add new monster
    2. List all monsters
    3. Play the game
    Enter your selection (enter "exit" to quit):1
    
    ADD NEW MONSTER
    Enter monster species: Cyclops
    Enter monster health: 50
    Enter monster max damage: 50
    You have successfully added Cyclops
    
    Please select from one of the following
    1. Add new monster
    2. List all monsters
    3. Play the game
    Enter your selection (enter "exit" to quit):3
    
    Enter player's name: Gamas
    Enter player's health: 100
    
    Gamas has 100 health remaining.
    Please select one of the following monsters:
    - troll - health 50
    - dragon - health 100
    - water golem - health 30
    Enter your selection (Enter 'stop' to end the game): aasfd
    invalid selection
    
    Gamas has 100 health remaining.
    Please select one of the following monsters:
    - troll - health 50
    - dragon - health 100
    - water golem - health 30
    Enter your selection (Enter 'stop' to end the game): stop
    
    Please select from one of the following
    1. Add new monster
    2. List all monsters
    3. Play the game
    Enter your selection (enter "exit" to quit):exit
    Thank you for playing AYCLOGIC Monster Inheritance game
    
    

Details

Date:
March 31, 2022
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights