File tree Expand file tree Collapse file tree
exercises/concept/blackjack/.docs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ switch(val) {
5858To learn more about this topic it is recommended to check these sources:
5959
6060- [ A refresh of Ternary operators] [ example-ternary ]
61- - [ If/Else datailed with flowcharts] [ example-ifelse-flowcharts ]
61+ - [ If/Else detailed with flowcharts] [ example-ifelse-flowcharts ]
6262- [ Switch examples] [ example-switch ]
6363
6464[ logical-operators ] : https://docs.oracle.com/javase/tutorial/java/nutsandbolts/op2.html
Original file line number Diff line number Diff line change 11# Introduction
22
3- TODO: the content below is copied from the exercise introduction and probably needs rewriting to a proper concept introduction
4-
5- ## conditionals-if
6-
73## Logical Operators
84
95Java supports the three logical operators ` && ` (AND), ` || ` (OR), and ` ! ` (NOT).
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ The `parseCard` function should take the `card` string (e.g. `ace`) and turn it
1919- Should use the ` parseCard ` function to get the value for each card.
2020- Should sum up the values of the 2 cards.
2121- Should return ` true ` if the sum is equal to ` 21 ` .
22- - No aditional statement is needed here. The result for the comparison can be returned.
22+ - No additional statement is needed here. The result for the comparison can be returned.
2323
2424## 3. Implement the decision logic for hand scores larger than 20 points.
2525
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ The overall logic has already been implemented. You have four tasks:
4040
4141## 1. Calculate the score of any given card.
4242
43- Implement a function to calculate the numerical value of a card given its name using coditionals .
43+ Implement a function to calculate the numerical value of a card given its name using conditionals .
4444
4545``` java
4646parseCard(" ace" )
You can’t perform that action at this time.
0 commit comments