
Closed
Posted
Paid on delivery
I need an experienced Ruby programmer to implement a Greed Game based on a specific problem statement. This project involves creating a Ruby program with RSpec for testing. Key Features: - Score calculation: The program should accurately compute scores based on the game's rules. - Dice rolling mechanics: You will need to implement different types of dice for various scenarios. - Player turns handling: The program should manage the sequence of player turns smoothly. The complexity of the game lies not only in the mechanics but also in adhering to specific 'greed' rules that I will provide. Ideal Skills: - Proficiency in Ruby - Experience with RSpec - Understanding of game mechanics programming - Ability to follow detailed rules and specifications Looking forward to your bids. The Greed Game rules are : GREED Greed is a dice game played among 2 or more players, using 5 six-sided dice. Playing Greed Each player takes a turn consisting of one or more rolls of the dice. On the first roll of the game, a player rolls all five dice which are scored according to the following: Three 1's => 1000 points Three 6's => 600 points Three 5's => 500 points Three 4's => 400 points Three 3's => 300 points Three 2's => 200 points One 1 => 100 points One 5 => 50 points A single die can only be counted once in each roll. For example, a "5" can only count as part of a triplet (contributing to the 500 points) or as a single 50 points, but not both in the same roll. Example Scoring Throw Score 5 1 3 4 1 50 + 2 * 100 = 250 1 1 1 3 1 1000 + 100 = 1100 2 4 4 5 4 400 + 50 = 450 The dice not contributing to the score are called the non-scoring dice. "3" and "4" are non-scoring dice in the first example. "3" is a non-scoring die in the second, and "2" is a non-score die in the final example. After a player rolls and the score is calculated, the scoring dice are removed and the player has the option of rolling again using only the non-scoring dice. If all of the thrown dice are scoring, then the player may roll all 5 dice in the next roll. The player may continue to roll as long as each roll scores points. If a roll has zero points, then the player loses not only their turn, but also accumulated score for that turn. If a player decides to stop rolling before rolling a zero-point roll, then the accumulated points for the turn is added to his total score. Getting "In The Game" Before a player is allowed to accumulate points, they must get at least 300 points in a single turn. Once they have achieved 300 points in a single turn, the points earned in that turn and each following turn will be counted toward their total score. End Game Once a player reaches 3000 (or more) points, the game enters the final round where each of the other players gets one more turn. The winner is the player with the highest score after the final round. References Greed is described on Wikipedia at [login to view URL](dice_game), however the rules are a bit different from the rules given here. Need to create this program using ruby, and comprehensive test cases using rspec. Cover all edge cases, test cases please
Project ID: 39238900
4 proposals
Remote project
Active 1 yr ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average $161 USD for this job

Greetings! I'm Julio Trasferetti, experienced Game Developer and Computer Engineer. My past work experience includes more than 14 years in the game industry. I've read your description and I feel confident to help you, since I know Ruby for more than 10+ years. My workflow is very transparent, and communication is the base (I've samples to share). Bests, - J
$100 USD in 4 days
5.1
5.1

Hi Good evening Already have something live to show you Live Similar Site work I have gone through your requirement , I found it very interesting , Since I already have similar live to show you As i had worked on these tech Ruby, Ruby on Rails and Software Architecture I can Implement is the similar or with changes for you !!!! Let us discuss more about this Thanks
$155 USD in 15 days
3.6
3.6

Hi! I’m Fredrick Asamoah, an engineering student with a strong grasp of logic-based systems and game development structure. I will implement the Greed Game in Ruby according to your custom rules, and I will build a fully test-driven design using RSpec. My approach includes: A modular Ruby structure with clear classes (Game, Player, Dice, ScoreCalculator) Accurate score calculation logic for singles, triples, and turn logic Proper turn management including rerolling, non-scoring dice, and stopping logic Comprehensive RSpec test suite for: Score scenarios (triplets, mixed) Turn flows Edge cases (invalid rolls, 0-points, entry rule at 300 pts) Final round logic and winner determination I’ll ensure the game logic is clear, robust, and easy to extend or update. Let’s discuss further so I can get started right away! Best regards, Fredrick Asamoah
$140 USD in 7 days
0.0
0.0

Chandigarh, India
Member since Mar 24, 2025
$250-750 USD
£20-250 GBP
$10-30 USD
₹12500-37500 INR
₹1500-12500 INR
$250-750 USD
$30-250 USD
$15-25 USD / hour
$250-750 USD
₹12500-37500 INR
$10-30 USD
$25-50 USD / hour
$250-750 USD
$250-750 USD
$30-250 USD
₹100-400 INR / hour
$100 NZD
$30-250 USD
₹12500-37500 INR
$1500-3000 AUD