Skip to content
Snippets Groups Projects
Commit 82570d52 authored by Bianca Mazzetti's avatar Bianca Mazzetti
Browse files

publish Ø05

parent cf74a39d
No related branches found
No related tags found
No related merge requests found
File added
#include "Blackjack.h"
// Her kan du lage dine funksjons- og klasseimplementasjoner for å lage blackjack
\ No newline at end of file
#pragma once
#include "CardDeck.h"
// Her kan du lage dine funksjons- og klassedeklarasjoner for å lage blackjack
#include "Card.h"
// BEGIN: 1c
// END: 1c
// BEGIN: 1d
// END: 1d
// BEGIN: 2b
// END: 2b
// BEGIN: 2c
// END: 2c
// BEGIN: 2d
// END: 2d
// BEGIN: 2e
// END: 2e
\ No newline at end of file
#pragma once
#include "std_lib_facilities.h"
// BEGIN: 1a
// END: 1a
// BEGIN: 1b
// END: 1b
/*
// Les deg opp på map og unordered_map i C++, og bruk disse map-ene
// for å konvertere mellom Rank/Suit og string i oppgavene videre
// Husk å fjern /* for å bruke map-ene
const map<Rank, string> rankToStringMap {
{Rank::two, "two"},
{Rank::three, "three"},
{Rank::four, "four"},
{Rank::five, "five"},
{Rank::six, "six"},
{Rank::seven, "seven"},
{Rank::eight, "eight"},
{Rank::nine, "nine"},
{Rank::ten, "ten"},
{Rank::jack, "jack"},
{Rank::queen, "queen"},
{Rank::king, "king"},
{Rank::ace, "ace"}
};
const map<Suit, string> SuitToStringMap {
{Suit::clubs, "clubs"},
{Suit::diamonds, "diamonds"},
{Suit::hearts, "hearts"},
{Suit::spades, "spades"}
};
*/
// BEGIN: 1c
// END: 1c
// BEGIN: 1d
// END: 1d
// BEGIN: 2a
// END: 2a
\ No newline at end of file
#include "CardDeck.h"
// BEGIN: 3b
// END: 3b
// BEGIN: 3c
// END: 3c
// BEGIN: 3d
// END: 3d
// BEGIN: 3e
// END: 3e
// BEGIN: 3f
// END: 3f
#pragma once
#include "Card.h"
// BEGIN: 3a
// END: 3a
#include "std_lib_facilities.h"
int main()
{
// Her skal du teste koden din underveis for å sikre deg at den funker slik forventet
return 0;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment