Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .idea/libraries/Dart_SDK.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/vcs.xml

This file was deleted.

2 changes: 1 addition & 1 deletion lib/functions/card_namer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ When given an integer between 1-13,
it should return the name of the corresponding card (Ignore the suit)
*/

String CardNamer(int i){
String? CardNamer(int i){

}
3 changes: 2 additions & 1 deletion lib/functions/check_if_busted.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if ... true eða false, return true eða false
*/


bool CheckIfBusted(List<int> hand){
bool? CheckIfBusted(List<int> hand){


}
2 changes: 1 addition & 1 deletion lib/functions/check_winner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ of the user, which should have decreased/increased based on if he won or not.

import 'package:BlackJack/functions/functions.dart';

int CheckWinner(List<int> playerHand, List<int> houseHand, int currentBankRoll, int currentBet){
int? CheckWinner(List<int> playerHand, List<int> houseHand, int currentBankRoll, int currentBet){

}
2 changes: 1 addition & 1 deletion lib/functions/deal_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ print(deck); // Should print [2, 3, 4]

*/

int DealCard(List<int> deck){
int? DealCard(List<int> deck){

}
2 changes: 1 addition & 1 deletion lib/functions/deck_of_cards.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ the number 2 four times etc...
Make this function return the List of integers.
*/

List<int> DeckOfCards() {
List<int>? DeckOfCards() {
List<int> Cards = [];
List<int> Deck = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];
List<String> Suits = ["Spaði", "Tígul", "Hjarta", "Lauf"];
Expand Down
4 changes: 2 additions & 2 deletions lib/functions/money_grab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Can you design the function such that it will ask the user again if
he doesn't input a integer?
*/

int PlaceBet(int bankRoll) {
int? PlaceBet(int bankRoll) {

}

int BuyIn() {
int? BuyIn() {

}
2 changes: 1 addition & 1 deletion lib/functions/option_select.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ that the function will simply ask the user again to input an answer?

*/

int OptionSelect(String statement, List<String> options) {
int? OptionSelect(String statement, List<String> options) {

}
2 changes: 1 addition & 1 deletion lib/functions/score_function.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ gets the score 1. So if the method gets the hand [1, 1] the score would be 12
hand = [7, 1] -> Score 18
*/

int CalculateScore(List<int> hand){
int? CalculateScore(List<int> hand){

}

2 changes: 1 addition & 1 deletion lib/functions/shuffled_deck.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ Shuffler
And when run, returns a shuffled deck of cards. No inputs, only output.
*/

List<int> ShuffledDeck(){
List<int>? ShuffledDeck(){

}
2 changes: 1 addition & 1 deletion lib/functions/shuffler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ and outputs a shuffled list of integers.
I.e, it should return a RANDOMIZED version of the list.
*/

List<int> Shuffler(List<int> theList){
List<int>? Shuffler(List<int> theList){

}
2 changes: 1 addition & 1 deletion lib/functions/status.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on what hand he has, his score and the hand of the house.
hand before showdown.)

*/
List CardNameList(List playerHand){
List? CardNameList(List playerHand){

}

Expand Down
Loading