Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
7e64213
[Sync Iteration] python/hello-world/1
exercism-solutions-syncer[bot] Aug 15, 2025
cb2e0e3
[Sync Iteration] python/armstrong-numbers/1
exercism-solutions-syncer[bot] Aug 15, 2025
ff43466
[Sync Iteration] python/matrix/1
exercism-solutions-syncer[bot] Aug 15, 2025
52e18ab
[Sync Iteration] python/matrix/2
exercism-solutions-syncer[bot] Aug 15, 2025
079e739
[Sync Iteration] python/matrix/3
exercism-solutions-syncer[bot] Aug 15, 2025
fc88f8a
[Sync Iteration] python/matrix/4
exercism-solutions-syncer[bot] Aug 15, 2025
b521ba4
[Sync Iteration] python/two-fer/1
exercism-solutions-syncer[bot] Aug 15, 2025
5855f05
[Sync Iteration] python/two-fer/2
exercism-solutions-syncer[bot] Aug 15, 2025
28a2d3e
[Sync Iteration] python/raindrops/1
exercism-solutions-syncer[bot] Aug 15, 2025
16dfe77
[Sync Iteration] python/raindrops/2
exercism-solutions-syncer[bot] Aug 15, 2025
02c9816
[Sync Iteration] python/raindrops/3
exercism-solutions-syncer[bot] Aug 15, 2025
56f4cfe
[Sync Iteration] python/raindrops/4
exercism-solutions-syncer[bot] Aug 15, 2025
cfe664d
[Sync Iteration] python/high-scores/1
exercism-solutions-syncer[bot] Aug 15, 2025
f4356be
[Sync Iteration] python/little-sisters-vocab/1
exercism-solutions-syncer[bot] Aug 15, 2025
cb0c89b
[Sync Iteration] python/little-sisters-vocab/2
exercism-solutions-syncer[bot] Aug 15, 2025
120f2c1
[Sync Iteration] python/little-sisters-vocab/3
exercism-solutions-syncer[bot] Aug 15, 2025
497861e
[Sync Iteration] python/little-sisters-vocab/4
exercism-solutions-syncer[bot] Aug 15, 2025
559fea9
[Sync Iteration] python/little-sisters-vocab/5
exercism-solutions-syncer[bot] Aug 15, 2025
d886cda
[Sync Iteration] python/little-sisters-vocab/6
exercism-solutions-syncer[bot] Aug 15, 2025
9623271
[Sync Iteration] python/little-sisters-vocab/7
exercism-solutions-syncer[bot] Aug 15, 2025
c4d3bc8
[Sync Iteration] python/little-sisters-vocab/8
exercism-solutions-syncer[bot] Aug 15, 2025
9191a67
[Sync Iteration] python/meltdown-mitigation/1
exercism-solutions-syncer[bot] Aug 15, 2025
36c9309
[Sync Iteration] python/meltdown-mitigation/2
exercism-solutions-syncer[bot] Aug 15, 2025
28db9e9
[Sync Iteration] python/tisbury-treasure-hunt/1
exercism-solutions-syncer[bot] Aug 15, 2025
44d6e11
[Sync Iteration] python/tisbury-treasure-hunt/2
exercism-solutions-syncer[bot] Aug 15, 2025
16711a0
[Sync Iteration] python/tisbury-treasure-hunt/3
exercism-solutions-syncer[bot] Aug 15, 2025
b024f42
[Sync Iteration] python/tisbury-treasure-hunt/4
exercism-solutions-syncer[bot] Aug 15, 2025
c41d793
[Sync Iteration] python/tisbury-treasure-hunt/5
exercism-solutions-syncer[bot] Aug 15, 2025
9f4e269
[Sync Iteration] python/guidos-gorgeous-lasagna/1
exercism-solutions-syncer[bot] Aug 15, 2025
d09f718
[Sync Iteration] python/guidos-gorgeous-lasagna/2
exercism-solutions-syncer[bot] Aug 15, 2025
65a1046
[Sync Iteration] python/guidos-gorgeous-lasagna/3
exercism-solutions-syncer[bot] Aug 15, 2025
d5bcf97
[Sync Iteration] python/guidos-gorgeous-lasagna/4
exercism-solutions-syncer[bot] Aug 15, 2025
427158c
[Sync Iteration] python/guidos-gorgeous-lasagna/5
exercism-solutions-syncer[bot] Aug 15, 2025
87369a9
[Sync Iteration] python/guidos-gorgeous-lasagna/6
exercism-solutions-syncer[bot] Aug 15, 2025
ca55445
[Sync Iteration] python/guidos-gorgeous-lasagna/7
exercism-solutions-syncer[bot] Aug 15, 2025
60c8d2c
[Sync Iteration] python/ghost-gobble-arcade-game/1
exercism-solutions-syncer[bot] Aug 15, 2025
14e8f63
[Sync Iteration] python/ghost-gobble-arcade-game/2
exercism-solutions-syncer[bot] Aug 15, 2025
0e66f06
[Sync Iteration] python/ghost-gobble-arcade-game/3
exercism-solutions-syncer[bot] Aug 15, 2025
7cdd5c2
[Sync Iteration] python/ghost-gobble-arcade-game/4
exercism-solutions-syncer[bot] Aug 15, 2025
97f6792
[Sync Iteration] python/ghost-gobble-arcade-game/5
exercism-solutions-syncer[bot] Aug 15, 2025
22cf923
[Sync Iteration] python/ghost-gobble-arcade-game/6
exercism-solutions-syncer[bot] Aug 15, 2025
6967d82
[Sync Iteration] python/black-jack/1
exercism-solutions-syncer[bot] Aug 15, 2025
349db07
[Sync Iteration] python/black-jack/2
exercism-solutions-syncer[bot] Aug 15, 2025
bc6d700
[Sync Iteration] python/black-jack/3
exercism-solutions-syncer[bot] Aug 15, 2025
6447a5c
[Sync Iteration] python/black-jack/4
exercism-solutions-syncer[bot] Aug 15, 2025
2ebcb0d
[Sync Iteration] python/black-jack/5
exercism-solutions-syncer[bot] Aug 15, 2025
7da1bf7
[Sync Iteration] python/black-jack/6
exercism-solutions-syncer[bot] Aug 15, 2025
f413dfc
[Sync Iteration] python/black-jack/7
exercism-solutions-syncer[bot] Aug 15, 2025
1130c44
[Sync Iteration] python/black-jack/8
exercism-solutions-syncer[bot] Aug 15, 2025
b011fed
[Sync Iteration] python/inventory-management/1
exercism-solutions-syncer[bot] Aug 15, 2025
f2c10c0
[Sync Iteration] python/card-games/1
exercism-solutions-syncer[bot] Aug 15, 2025
249c8e9
[Sync Iteration] python/card-games/2
exercism-solutions-syncer[bot] Aug 15, 2025
1bb6676
[Sync Iteration] python/card-games/3
exercism-solutions-syncer[bot] Aug 15, 2025
843aa2d
[Sync Iteration] python/card-games/4
exercism-solutions-syncer[bot] Aug 15, 2025
ec80803
[Sync Iteration] python/card-games/5
exercism-solutions-syncer[bot] Aug 15, 2025
6b05e47
[Sync Iteration] python/chaitanas-colossal-coaster/1
exercism-solutions-syncer[bot] Aug 15, 2025
7329290
[Sync Iteration] python/chaitanas-colossal-coaster/2
exercism-solutions-syncer[bot] Aug 15, 2025
712e0d3
[Sync Iteration] python/making-the-grade/1
exercism-solutions-syncer[bot] Aug 15, 2025
7037a8a
[Sync Iteration] python/making-the-grade/2
exercism-solutions-syncer[bot] Aug 15, 2025
5c8d0bf
[Sync Iteration] python/making-the-grade/3
exercism-solutions-syncer[bot] Aug 15, 2025
518f496
[Sync Iteration] python/making-the-grade/4
exercism-solutions-syncer[bot] Aug 15, 2025
392925c
[Sync Iteration] python/making-the-grade/5
exercism-solutions-syncer[bot] Aug 15, 2025
6d543aa
[Sync Iteration] python/making-the-grade/6
exercism-solutions-syncer[bot] Aug 15, 2025
97907e6
[Sync Iteration] python/little-sisters-essay/1
exercism-solutions-syncer[bot] Aug 15, 2025
3097c83
[Sync Iteration] python/little-sisters-essay/2
exercism-solutions-syncer[bot] Aug 15, 2025
0226113
[Sync Iteration] python/little-sisters-essay/3
exercism-solutions-syncer[bot] Aug 15, 2025
163bb78
[Sync Iteration] python/currency-exchange/1
exercism-solutions-syncer[bot] Aug 15, 2025
23e83d7
[Sync Iteration] python/currency-exchange/2
exercism-solutions-syncer[bot] Aug 15, 2025
e5573c7
[Sync Iteration] python/cater-waiter/1
exercism-solutions-syncer[bot] Aug 15, 2025
6015c3f
[Sync Iteration] python/cater-waiter/2
exercism-solutions-syncer[bot] Aug 15, 2025
9afca83
[Sync Iteration] python/cater-waiter/3
exercism-solutions-syncer[bot] Aug 15, 2025
1ecb97c
[Sync Iteration] python/locomotive-engineer/1
exercism-solutions-syncer[bot] Aug 15, 2025
c360aab
[Sync Iteration] go/hello-world/1
exercism-solutions-syncer[bot] Aug 15, 2025
1c9a40c
[Sync Iteration] go/lasagna/1
exercism-solutions-syncer[bot] Aug 15, 2025
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
6 changes: 6 additions & 0 deletions solutions/go/hello-world/1/hello_world.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package greeting

// HelloWorld salue le monde.
func HelloWorld() string {
return "Hello, World!"
}
22 changes: 22 additions & 0 deletions solutions/go/lasagna/1/lasagna.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package lasagna

// TODO: define the 'OvenTime' constant
const OvenTime int = 40

// RemainingOvenTime returns the remaining minutes based on the `actual` minutes already in the oven.
func RemainingOvenTime(actualMinutesInOven int) int {
//panic("RemainingOvenTime not implemented")
return OvenTime - actualMinutesInOven
}

// PreparationTime calculates the time needed to prepare the lasagna based on the amount of layers.
func PreparationTime(numberOfLayers int) int {
//panic("PreparationTime not implemented")
return numberOfLayers * 2
}

// ElapsedTime calculates the total time needed to create and bake a lasagna.
func ElapsedTime(numberOfLayers, actualMinutesInOven int) int {
//panic("ElapsedTime not implemented")
return (numberOfLayers * 2) + actualMinutesInOven
}
9 changes: 9 additions & 0 deletions solutions/python/armstrong-numbers/1/armstrong_numbers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
def is_armstrong_number(number):
digits = str(number)
len_digits = len(digits)
sum_of_digits = 0
for digit in digits:
sum_of_digits += pow(int(digit), len_digits)
if number == sum_of_digits:
return True
return False
76 changes: 76 additions & 0 deletions solutions/python/black-jack/1/black_jack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
"""Functions to help play and score a game of blackjack.

How to play blackjack: https://bicyclecards.com/how-to-play/blackjack/
"Standard" playing cards: https://en.wikipedia.org/wiki/Standard_52-card_deck
"""


def value_of_card(card):
"""Determine the scoring value of a card.

:param card: str - given card.
:return: int - value of a given card (J, Q, K = 10, 'A' = 1) numerical value otherwise.
"""

if card.lower() == "k" or card.lower() == "j" or card.lower() == "q":
return 10
if card.lower() == "a":
return 1
return int(card)



print(value_of_card("J"))



print(value_of_card("J"))

def higher_card(card_one, card_two):
"""Determine which card has a higher value in the hand.

:param card_one, card_two: str - cards dealt. J, Q, K = 10, 'A' = 1, all others are numerical value.
:return: higher value card - str. Tuple of both cards if they are of equal value.
"""

pass


def value_of_ace(card_one, card_two):
"""Calculate the most advantageous value for the ace card.

:param card_one, card_two: str - card (J, Q, K == 10, numerical value otherwise)
:return: int - value of the upcoming ace card (either 1 or 11).
"""

pass


def is_blackjack(card_one, card_two):
"""Determine if the hand is a 'natural' or 'blackjack'.

:param card_one, card_two: str - cards dealt. J, Q, K = 10, 'A' = 11, all others are numerical value.
:return: bool - if the hand is a blackjack (two cards worth 21).
"""

pass


def can_split_pairs(card_one, card_two):
"""Determine if a player can split their hand into two hands.

:param card_one, card_two: str - cards in hand.
:return: bool - if the hand can be split into two pairs (i.e. cards are of the same value).
"""

pass


def can_double_down(card_one, card_two):
"""Determine if a blackjack player can place a double down bet.

:param card_one, card_two: str - first and second cards in hand.
:return: bool - if the hand can be doubled down (i.e. totals 9, 10 or 11 points).
"""

pass
87 changes: 87 additions & 0 deletions solutions/python/black-jack/2/black_jack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
"""Functions to help play and score a game of blackjack.

How to play blackjack: https://bicyclecards.com/how-to-play/blackjack/
"Standard" playing cards: https://en.wikipedia.org/wiki/Standard_52-card_deck
"""


def value_of_card(card):
"""Determine the scoring value of a card.

:param card: str - given card.
:return: int - value of a given card (J, Q, K = 10, 'A' = 1) numerical value otherwise.
"""

if card.lower() == "k" or card.lower() == "j" or card.lower() == "q":
return 10
if card.lower() == "a":
return 1
return int(card)

def higher_card(card_one, card_two):
"""Determine which card has a higher value in the hand.

:param card_one, card_two: str - cards dealt. J, Q, K = 10, 'A' = 1, all others are numerical value.
:return: higher value card - str. Tuple of both cards if they are of equal value.
"""

card_one_value = 0
card_two_value = 0
if card_one.lower() == "k" or card_one.lower() == "j" or card_one.lower() == "q":
card_one_value = 10
if card_two.lower() == "k" or card_two.lower() == "j" or card_two.lower() == "q":
card_two_value = 10
if card_one.lower() == "a":
card_one_value = 1
if card_two.lower() == "a":
card_two_value = 1
if card_one.lower != "a" and card_one.lower() != "k" and card_one.lower() != "j" and card_one.lower() != "q":
card_one_value = int(card_one)
if card_two.lower != "a" and card_two.lower() != "k" and card_two.lower() != "j" and card_two.lower() != "q":
card_two_value = int(card_two)
if card_one_value == card_two_value:
return card_one, card_two
elif card_one_value > card_two_value:
return card_one
else:
return card_two


def value_of_ace(card_one, card_two):
"""Calculate the most advantageous value for the ace card.

:param card_one, card_two: str - card (J, Q, K == 10, numerical value otherwise)
:return: int - value of the upcoming ace card (either 1 or 11).
"""

pass


def is_blackjack(card_one, card_two):
"""Determine if the hand is a 'natural' or 'blackjack'.

:param card_one, card_two: str - cards dealt. J, Q, K = 10, 'A' = 11, all others are numerical value.
:return: bool - if the hand is a blackjack (two cards worth 21).
"""

pass


def can_split_pairs(card_one, card_two):
"""Determine if a player can split their hand into two hands.

:param card_one, card_two: str - cards in hand.
:return: bool - if the hand can be split into two pairs (i.e. cards are of the same value).
"""

pass


def can_double_down(card_one, card_two):
"""Determine if a blackjack player can place a double down bet.

:param card_one, card_two: str - first and second cards in hand.
:return: bool - if the hand can be doubled down (i.e. totals 9, 10 or 11 points).
"""

pass
73 changes: 73 additions & 0 deletions solutions/python/black-jack/3/black_jack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
"""Functions to help play and score a game of blackjack.

How to play blackjack: https://bicyclecards.com/how-to-play/blackjack/
"Standard" playing cards: https://en.wikipedia.org/wiki/Standard_52-card_deck
"""


def value_of_card(card):
"""Determine the scoring value of a card.

:param card: str - given card.
:return: int - value of a given card (J, Q, K = 10, 'A' = 1) numerical value otherwise.
"""

if card.lower() == "k" or card.lower() == "j" or card.lower() == "q":
return 10
if card.lower() == "a":
return 1
return int(card)

def higher_card(card_one, card_two):
"""Determine which card has a higher value in the hand.

:param card_one, card_two: str - cards dealt. J, Q, K = 10, 'A' = 1, all others are numerical value.
:return: higher value card - str. Tuple of both cards if they are of equal value.
"""
if (value_of_card(card_one) > value_of_card(card_two)):
return card_one
elif value_of_card(card_one) == value_of_card(card_two):
return card_one, card_two
else:
return card_two



def value_of_ace(card_one, card_two):
"""Calculate the most advantageous value for the ace card.

:param card_one, card_two: str - card (J, Q, K == 10, numerical value otherwise)
:return: int - value of the upcoming ace card (either 1 or 11).
"""

pass


def is_blackjack(card_one, card_two):
"""Determine if the hand is a 'natural' or 'blackjack'.

:param card_one, card_two: str - cards dealt. J, Q, K = 10, 'A' = 11, all others are numerical value.
:return: bool - if the hand is a blackjack (two cards worth 21).
"""

pass


def can_split_pairs(card_one, card_two):
"""Determine if a player can split their hand into two hands.

:param card_one, card_two: str - cards in hand.
:return: bool - if the hand can be split into two pairs (i.e. cards are of the same value).
"""

pass


def can_double_down(card_one, card_two):
"""Determine if a blackjack player can place a double down bet.

:param card_one, card_two: str - first and second cards in hand.
:return: bool - if the hand can be doubled down (i.e. totals 9, 10 or 11 points).
"""

pass
76 changes: 76 additions & 0 deletions solutions/python/black-jack/4/black_jack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
"""Functions to help play and score a game of blackjack.

How to play blackjack: https://bicyclecards.com/how-to-play/blackjack/
"Standard" playing cards: https://en.wikipedia.org/wiki/Standard_52-card_deck
"""


def value_of_card(card):
"""Determine the scoring value of a card.

:param card: str - given card.
:return: int - value of a given card (J, Q, K = 10, 'A' = 1) numerical value otherwise.
"""

if card.lower() == "k" or card.lower() == "j" or card.lower() == "q":
return 10
if card.lower() == "a":
return 1
return int(card)

def higher_card(card_one, card_two):
"""Determine which card has a higher value in the hand.

:param card_one, card_two: str - cards dealt. J, Q, K = 10, 'A' = 1, all others are numerical value.
:return: higher value card - str. Tuple of both cards if they are of equal value.
"""
if (value_of_card(card_one) > value_of_card(card_two)):
return card_one
elif value_of_card(card_one) == value_of_card(card_two):
return card_one, card_two
else:
return card_two

def value_of_ace(card_one, card_two):
"""Calculate the most advantageous value for the ace card.

:param card_one, card_two: str - card (J, Q, K == 10, numerical value otherwise)
:return: int - value of the upcoming ace card (either 1 or 11).
"""

card_one_value = value_of_card(card_one)
card_two_value = value_of_card(card_two)
if card_one_value + card_two_value + 11 > 21:
return 1
else:
return 11


def is_blackjack(card_one, card_two):
"""Determine if the hand is a 'natural' or 'blackjack'.

:param card_one, card_two: str - cards dealt. J, Q, K = 10, 'A' = 11, all others are numerical value.
:return: bool - if the hand is a blackjack (two cards worth 21).
"""

pass


def can_split_pairs(card_one, card_two):
"""Determine if a player can split their hand into two hands.

:param card_one, card_two: str - cards in hand.
:return: bool - if the hand can be split into two pairs (i.e. cards are of the same value).
"""

pass


def can_double_down(card_one, card_two):
"""Determine if a blackjack player can place a double down bet.

:param card_one, card_two: str - first and second cards in hand.
:return: bool - if the hand can be doubled down (i.e. totals 9, 10 or 11 points).
"""

pass
Loading