Skip to content

Commit 9d7b58d

Browse files
committed
Board should no longer allow 6s or 8s next to each other. Test cases are written, but I wasn't sure how to run them to test...
1 parent a576b2c commit 9d7b58d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GameBoard.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void GameBoard::init_resources()
101101
{
102102
std::srand(std::time(0));
103103

104-
resourceType resources[] = {BRICK, BRICK, BRICK, STONE, STONE, STONE, WHEAT, WHEAT, WHEAT, WHEAT, WOOD, WOOD, WOOD, WOOD, SHEEP, SHEEP, SHEEP, SHEEP};
104+
resourceType resources[] = {BRICK, BRICK, BRICK, STONE, STONE, STONE, WHEAT, WHEAT, WHEAT, WHEAT, WOOD, WOOD, WOOD, WOOD, SHEEP, SHEEP, SHEEP, SHEEP, DESERT};
105105
random_shuffle(&resources[0], &resources[19]);
106106

107107
int rolls[] = {0, 2, 3, 3, 4, 4, 5, 5, 6, 6, 8, 8, 9, 9, 10, 10, 11, 11, 12};
@@ -120,7 +120,7 @@ void GameBoard::init_resources()
120120
{
121121
if (rolls[i] == 0)
122122
{
123-
addResource(xcoords[i], ycoords[i], DESERT, 0);
123+
addResource(xcoords[i], ycoords[i], resources[18], 0);
124124
}
125125
else
126126
{

0 commit comments

Comments
 (0)