yoel123 / java-text-based-space-station-manger-sim

space station management/tycoon/trader game. made for fun and practice.
6 stars 8 forks source link

Added a sell/buy all/half feature #54

Closed s-i-d-i closed 3 years ago

s-i-d-i commented 3 years ago

Made a function get_amount inside market_screen that reads a String from the user and goes on with the sell/buy if it's "all", "half" or an integer. Made a function is_int inside gyinput since is_num checks only if the String is a number and it doesn't check if it's an integer.

yoel123 commented 3 years ago

very good, since we haven't talked on discord, i will tell you what i tell al contributors, do not expect to get paid for this. if you understand this then ok.