martimatix / Ruby_Dice

A Yahtzee clone written in ruby that runs in the terminal
MIT License
3 stars 0 forks source link

Field Shortcuts #32

Closed Zrp200 closed 9 years ago

Zrp200 commented 9 years ago

There needs to be abbreviations for the score field

martimatix commented 9 years ago

Let's just borrow the short cuts from this repo.

key_move_mappings = {"1" => :ones, "2" => :twos, "3" => :threes,
    "4" => :fours, "5" => :fives, "6" => :sixes,
    "s" => :small_straight, "l" => :large_straight,
    "t" => :three_of_a_kind, "f" => :four_of_a_kind,
    "h" => :full_house, "y" => :yahtzee, "?" => :chance};

I had initially envisioned typing the full name but supporting tab completion. However, that's probably more work than necessary.

Zrp200 commented 9 years ago

Sure

Zrp200 commented 9 years ago

Where should this go?

martimatix commented 9 years ago

In the Player class.