View/Edit #6161:total_value tv

Switch to edit mode.

Name(s): total_value tv
1:  aces = 0
2:  total = 0
3:  for x in (args[1])
4:    value = this.values[x]
5:    if (value == 0)
6:      total = total + 11
7:      aces = aces + 1
8:    else
9:      total = total + value
10:   endif
11: endfor
12: while (aces)
13:   aces = aces - 1
14:   if (total > 21)
15:     total = total - 10
16:   endif
17: endwhile
18: return total
19: "Last modified by James (#6397) on Sun Jun 28 01:02:00 1998 EDT."

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: James (#6397)

You are not logged in.

[home | help | who | search | setup | code]