Skip to main content
Code Review

Return to Answer

replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Source Link

My remarks about the Ruby version of your code remarks about the Ruby version of your code also apply to your JavaScript port.

For example hitOrStay() should not recurse, because you're just using it as a goto.

The players' hands should be stored in an array so that you don't have to write special cases for one, two, or three players.

My remarks about the Ruby version of your code also apply to your JavaScript port.

For example hitOrStay() should not recurse, because you're just using it as a goto.

The players' hands should be stored in an array so that you don't have to write special cases for one, two, or three players.

My remarks about the Ruby version of your code also apply to your JavaScript port.

For example hitOrStay() should not recurse, because you're just using it as a goto.

The players' hands should be stored in an array so that you don't have to write special cases for one, two, or three players.

Source Link
200_success
  • 145.5k
  • 22
  • 190
  • 479

My remarks about the Ruby version of your code also apply to your JavaScript port.

For example hitOrStay() should not recurse, because you're just using it as a goto.

The players' hands should be stored in an array so that you don't have to write special cases for one, two, or three players.

default

AltStyle によって変換されたページ (->オリジナル) /