summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-03-28 12:06:16 +0000
committeremkael <emkael@tlen.pl>2015-03-28 12:06:16 +0000
commita79b7fcded684011e0e580cf6362f53c40bef1a9 (patch)
tree1f34592acf7cff2545e3aa013a075691414b82a0
parent0e3806a90d6f40c741453ad7a2b06ce736c7279f (diff)
* BUGFIX: sorting predeal input characters (Dealer requires suits sorted)
git-svn-id: https://svn.emkael.info/an9k@52 05ec0d5d-773b-4d93-9e23-c81a7ac79feb
-rw-r--r--Analizator9000/Analizator9000/Form1.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Analizator9000/Analizator9000/Form1.cs b/Analizator9000/Analizator9000/Form1.cs
index ed44678..180d9e5 100644
--- a/Analizator9000/Analizator9000/Form1.cs
+++ b/Analizator9000/Analizator9000/Form1.cs
@@ -115,7 +115,7 @@ namespace Analizator9000
{
for (int i = 0; i < predeal.Value.Length; i++)
{
- predeal.Value[i] = predeal.Value[i].ToUpper().Replace('D', 'Q').Replace('W', 'J').Replace("10", "T");
+ predeal.Value[i] = new String(predeal.Value[i].ToUpper().Replace('D', 'Q').Replace('W', 'J').Replace("10", "T").OrderBy(c => "AKQJT98765432".IndexOf(c)).ToArray());
}
}
parser.actions = actionsBox.Text.Split('\n').ToList();