Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QORY IC 6 CHALLENGE #2

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

qoryhanisagal
Copy link

This pull request implements the features required for Iteration 3 of the project. It introduces methods to enhance the bidding functionality in the Auction and Item classes. The updates include the following:

Key Features

1.	Auction#bidders:
•	Returns an array of unique bidder names (as strings) who have placed bids on any item in the auction.
•	Example output: ["Megan", "Bob", "Mike"].
2.	Auction#bidder_info:
•	Returns a detailed hash with the following structure:
•	Keys: Attendee objects who placed bids.
•	Values: Subhash containing:
•	:budget: The attendee’s budget as an integer.
•	:items: An array of items the attendee has bid on.


Tests

•	Comprehensive unit tests were added for all new methods in the following files:
•	auction_spec.rb:
•	Tests for bidders and bidder_info.
•	item_spec.rb:
•	Test for close_bidding.
•	All tests pass successfully, ensuring correctness of the new functionality.

Implementation Notes

•	The Auction#bidder_info method uses nested loops to iterate over items and attendees’ bids to construct the required hash structure.
•	The Item#close_bidding method utilizes a flag (@bidding_closed) to determine if new bids should be accepted.

@qoryhanisagal qoryhanisagal changed the title Iteration 3 Implementation: Additional Bidding Features QORY IC 6 CHALLENGE Nov 12, 2024
@qoryhanisagal qoryhanisagal reopened this Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant