<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Card Rank Identifier</title>
		<link>http://tibasicdev.wikidot.com/forum/t-83328/card-rank-identifier</link>
		<description>Posts in the discussion thread &quot;Card Rank Identifier&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Wed, 22 Apr 2026 14:31:51 +0000</lastBuildDate>
		
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-83328#post-247946</guid>
				<title>Re: Card Rank Identifier</title>
				<link>http://tibasicdev.wikidot.com/forum/t-83328/card-rank-identifier#post-247946</link>
				<description></description>
				<pubDate>Thu, 28 Aug 2008 16:30:50 +0000</pubDate>
				<wikidot:authorName>calccrypto</wikidot:authorName>				<wikidot:authorUserId>169000</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>so should i make the calc identify the highest ranking combos first, skip the rest of the instructions, see if the chosen combo is bigger than what was played, and then replace the played cards?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-83328#post-247752</guid>
				<title>Re: Card Rank Identifier</title>
				<link>http://tibasicdev.wikidot.com/forum/t-83328/card-rank-identifier#post-247752</link>
				<description></description>
				<pubDate>Thu, 28 Aug 2008 09:28:04 +0000</pubDate>
				<wikidot:authorName>Mapar007</wikidot:authorName>				<wikidot:authorUserId>143829</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I managed to do that too, but only my program cannot see the difference between 4 of a kind and Full House with the triple first.</p> <p>\Mapar007</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-83328#post-247680</guid>
				<title>Re: Card Rank Identifier</title>
				<link>http://tibasicdev.wikidot.com/forum/t-83328/card-rank-identifier#post-247680</link>
				<description></description>
				<pubDate>Thu, 28 Aug 2008 05:07:37 +0000</pubDate>
				<wikidot:authorName>calccrypto</wikidot:authorName>				<wikidot:authorUserId>169000</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>im using lists instead of instring( since lists are slightly faster for this. i managed to get the computer to see singles, doubles and triples and a straight (5 cards), but that's about it</p> <p>im doing</p> <p>singles:</p> <div class="code"> <pre><code>if ∟COMP(1)&gt;∟CARD(1 ∟COMP(1)→∟CARD(1</code></pre></div> <p>something like that&#8230;<br /> its so annoying</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-83328#post-247417</guid>
				<title>Re: Card Rank Identifier</title>
				<link>http://tibasicdev.wikidot.com/forum/t-83328/card-rank-identifier#post-247417</link>
				<description></description>
				<pubDate>Wed, 27 Aug 2008 22:50:22 +0000</pubDate>
				<wikidot:authorName>builderboy</wikidot:authorName>				<wikidot:authorUserId>141501</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p><em>'scowls at darkerstone knight'</em></p> <p>Instring works by returning the position of a string inside of another string. for example 'a' has a position of 1 in string 'abcdef'. The way you could make this work for your card game is have all the cards values stored into a string. 'A1234567890JQK' 0 being a 10. (That might be the wrong order, i'm not an expert') and then another string to classify its suit. 'HSCD' Hearts, Spades, Clubs, Diamonds.</p> <p>You could then identify each card by a number. 12,2 would be the Jack of Spades. The numbers would help in ranking the kard as well. A 9,2 would be worth more than a 4,2. You could then denote your hand by a list of numbers.</p> <p>9,2,5,4,2,1,7,3,13,3,6,1,2,2 for example would be a 7 card hand. Every two elements of the list represents 1 card, 14 elements being 7 cards.</p> <p>In order to find out if you have doubles or triples or such, you could set up a system to find patterns in the numbers. I won't try to write this out for you, but i will give an example idea for finding singles and doubles.</p> <p>The program first sets up a card list with 13 elements all at 0 for all 13 types of cards</p> <p>The program goes through every even element of the list, and adds a 1 to the element in the card list that corresponds to the number that it finds. For example if the program found a 3 in the first element, it would add a 1 to element 3 of the card list.</p> <p>At the end, if any of the elements in the card list had a 2, we know that you have two of the card that is represented by that element. This program could also be adapted to finding threes or fours as well.</p> <p>As for finding other combinations such as flushes, full houses, straits, and so on, you will have to think of those on your own. Although feel free to ask any questions.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-83328#post-247358</guid>
				<title>Re: Card Rank Identifier</title>
				<link>http://tibasicdev.wikidot.com/forum/t-83328/card-rank-identifier#post-247358</link>
				<description></description>
				<pubDate>Wed, 27 Aug 2008 21:32:15 +0000</pubDate>
				<wikidot:authorName>darkstone knight</wikidot:authorName>				<wikidot:authorUserId>141837</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>is it really that hard? lol</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-83328#post-246960</guid>
				<title>Re: Card Rank Identifier</title>
				<link>http://tibasicdev.wikidot.com/forum/t-83328/card-rank-identifier#post-246960</link>
				<description></description>
				<pubDate>Wed, 27 Aug 2008 12:25:05 +0000</pubDate>
				<wikidot:authorName>calccrypto</wikidot:authorName>				<wikidot:authorUserId>169000</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-83328#post-246903</guid>
				<title>Re: Card Rank Identifier</title>
				<link>http://tibasicdev.wikidot.com/forum/t-83328/card-rank-identifier#post-246903</link>
				<description></description>
				<pubDate>Wed, 27 Aug 2008 10:13:29 +0000</pubDate>
				<wikidot:authorName>darkstone knight</wikidot:authorName>				<wikidot:authorUserId>141837</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>well, you can use instring(&#8230;.</p> <p>just convert the cards into string characers and compare them to a string</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-83328#post-244521</guid>
				<title>Card Rank Identifier</title>
				<link>http://tibasicdev.wikidot.com/forum/t-83328/card-rank-identifier#post-244521</link>
				<description></description>
				<pubDate>Sat, 23 Aug 2008 03:11:08 +0000</pubDate>
				<wikidot:authorName>calccrypto</wikidot:authorName>				<wikidot:authorUserId>169000</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>how should i write a program that can tell the difference between card rankings?</p> <p>I want to make a program that will tell the difference between singles, doubles, triples, and 5 card combos (flushes, full houses, 4 of a kinds, straights, and whatever else there is, by ranks, and then compare that with what's already been played (compare numbers, suits, and rank of combo in general)). when the calculator is comparing the cards, the lists used will be the size of the cards that are chosen</p> <p>&quot;if/then&quot; is taking too long to write and becomes very confusing</p> <p>Can anyone help me?? Ive worked on this for a whole year and have gotten nowhere after this part.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>