Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
c9360ed4
Commit
c9360ed4
authored
14 years ago
by
mcmlxxix
Browse files
Options
Downloads
Patches
Plain Diff
forced hand.group to initialize as true array.
parent
cee437c3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/load/cardlib.js
+1
-3
1 addition, 3 deletions
exec/load/cardlib.js
with
1 addition
and
3 deletions
exec/load/cardlib.js
+
1
−
3
View file @
c9360ed4
...
...
@@ -118,7 +118,7 @@ function Hunt_Straight(cards,depth) {
/* This function accepts any number of cards in as a true array */
function
Rank
(
cards
)
{
var
hand
=
new
Object
();
hand
.
group
=
new
Array
()
;
hand
.
group
=
[[],[],[],[],[]]
;
hand
.
rank
=
0
;
hand
.
str
=
""
;
...
...
@@ -231,8 +231,6 @@ function Rank(cards) {
the array index. unshift() will leave
the cards sorted from high to low. */
for
(
c
in
count
)
{
if
(
!
hand
.
group
[
count
[
c
]])
hand
.
group
[
count
[
c
]]
=
new
Array
();
hand
.
group
[
count
[
c
]].
unshift
(
c
);
}
return
hand
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment