- A
Character
should have aname
and ahealth
pool. - A
Character
'shealth
is initialized at100
and cannot go above this value. - A
Character
can either bealive
ordead
- when it reaches0
health
points. - A
Character
canattack
anotherCharacter
and deal1
damage point to its enemy'shealth
if it isn't alreadydead
. ACharacter
cannot attack itself... - A
Character
canheal
anotherCharacter
and return1
point to its ally'shealth
pool. ACharacter
can
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<properties> | |
<maven.compiler.source>11</maven.compiler.source> | |
<maven.compiler.target>11</maven.compiler.target> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> | |
<maven-shade-plugin.version>3.2.1</maven-shade-plugin.version> | |
</properties> | |
<build> |
Action | Shortcut |
---|---|
Search everywhere | Double Shift |
Find action | Ctrl + Shift + A |
New... | Alt + Inser. |
Toggle Project view | Alt + 1 |
1
=1
1 2 +
=3
1 2 + 3 +
=6
1 2 3 + +
=6
1 2 3 + + 4 5 + + 6 +
=21
1.5 2 +
=3.5
Write a simple Fraction calculator. Simplification is not required.
- 1/2 + 3/4
- = ((1*4) + (3*2)) / (2*4)