Esempio n. 1
0
 def test_playMarble_with_9_players_25_marbles_should_return_a_high_score_of_32(
         self):
     """Test for playMarble"""
     highScore = playMarble(9, 25)
     self.assertEqual(32, highScore)
Esempio n. 2
0
"""Day 09 puzzle solutions"""

import sys
import day09_lib

print("Day09 --- Part One --- result is: {0}".format(
    day09_lib.playMarble(428, 72061)))
print("Day09 --- Part Two --- result is: {0}".format(
    day09_lib.playMarble(428, 7206100)))
Esempio n. 3
0
 def test_playMarble_with_30_players_5807_marbles_should_return_a_high_score_of_37305(
         self):
     """Test for playMarble"""
     highScore = playMarble(30, 5807)
     self.assertEqual(37305, highScore)
Esempio n. 4
0
 def test_playMarble_with_21_players_6111_marbles_should_return_a_high_score_of_54718(
         self):
     """Test for playMarble"""
     highScore = playMarble(21, 6111)
     self.assertEqual(54718, highScore)
Esempio n. 5
0
 def test_playMarble_with_17_players_1104_marbles_should_return_a_high_score_of_2764(
         self):
     """Test for playMarble"""
     highScore = playMarble(17, 1104)
     self.assertEqual(2764, highScore)
Esempio n. 6
0
 def test_playMarble_with_13_players_7999_marbles_should_return_a_high_score_of_146373(
         self):
     """Test for playMarble"""
     highScore = playMarble(13, 7999)
     self.assertEqual(146373, highScore)
Esempio n. 7
0
 def test_playMarble_with_10_players_1618_marbles_should_return_a_high_score_of_8317(
         self):
     """Test for playMarble"""
     highScore = playMarble(10, 1618)
     self.assertEqual(8317, highScore)