Skip to content

Commit

Permalink
Todo cleanup (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric15342335 authored Jun 5, 2024
1 parent 97a0ff9 commit 1cd66bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion include/events.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ void print_map(const std::map<unsigned int, std::vector<unsigned int>> & map);

extern const Stock_event STOCK_SPLIT_EVENT;

/// @todo Understand this constexpr lambda
inline const unsigned int sumOfAllEventsProbability = []() {
unsigned int sum = 0;
for (const auto & event : all_stock_events) {
Expand Down
4 changes: 1 addition & 3 deletions src/stock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ void Stock::load(const std::string & playerName, int i) {
// get the first line, which is category
fin >> *this; // use operator>> to load the Stock object
fin.close();
// @todo Do not hardcode this limit, use a constant
// STOCK_PRICE_LIMIT instead
assert(price <= 1000 && "Price exceed the limit");
assert(price <= STOCK_PRICE_LIMIT && "Price exceed the limit");
std::cout << "done" << std::endl;
}

Expand Down

0 comments on commit 1cd66bf

Please sign in to comment.