<?xml version="1.0"?>
<flowgorithm fileversion="2.11">
    <attributes>
        <attribute name="name" value=""/>
        <attribute name="authors" value="burrin"/>
        <attribute name="about" value=""/>
        <attribute name="saved" value="2022-05-14 09:30:25 AM"/>
        <attribute name="created" value="YnVycmluO0RFU0tUT1AtNzQ5RDJJRjsyMDIyLTA1LTE0OzA4OjM3OjUzIEFNOzI5Mzc="/>
        <attribute name="edited" value="YnVycmluO0RFU0tUT1AtNzQ5RDJJRjsyMDIyLTA1LTE0OzA5OjMwOjI1IEFNOzEyOzMwODg="/>
    </attributes>
    <function name="Main" type="None" variable="">
        <parameters/>
        <body>
            <declare name="score" type="Integer" array="False" size=""/>
            <assign variable="score" expression="0"/>
            <declare name="lost" type="Boolean" array="False" size=""/>
            <assign variable="lost" expression="False"/>
            <declare name="counter" type="Integer" array="False" size=""/>
            <assign variable="counter" expression="0"/>
            <declare name="checkvar" type="String" array="False" size=""/>
            <declare name="lengthcount" type="Integer" array="False" size=""/>
            <declare name="pattern" type="String" array="False" size=""/>
            <declare name="guess" type="String" array="False" size=""/>
            <while expression="counter &lt;=99">
                <while expression="lost == False">
                    <assign variable="pattern" expression="&quot;&quot;"/>
                    <assign variable="checkvar" expression="ToString(counter)"/>
                    <assign variable="lengthcount" expression="len(checkvar)"/>
                    <declare name="counter2" type="Integer" array="False" size=""/>
                    <for variable="counter2" start="0" end="lengthcount-1" direction="inc" step="1">
                        <if expression="char(checkvar,counter2) = &quot;3&quot; or char(checkvar,counter2) = &quot;6&quot; or char(checkvar,counter2)=&quot;9&quot;">
                            <then>
                                <assign variable="pattern" expression="pattern&amp;&quot;clap&quot;"/>
                            </then>
                            <else>
                                <assign variable="pattern" expression="pattern&amp;char(checkvar,counter2)"/>
                            </else>
                        </if>
                    </for>
                    <output expression="&quot;guess&quot;" newline="True"/>
                    <input variable="guess"/>
                    <if expression="guess==pattern">
                        <then>
                            <output expression="&quot;Correct&quot;" newline="True"/>
                            <assign variable="score" expression="score + 1"/>
                        </then>
                        <else>
                            <output expression="&quot;Wrong&quot;" newline="True"/>
                            <assign variable="lost" expression="True"/>
                            <assign variable="counter" expression="99"/>
                        </else>
                    </if>
                    <assign variable="counter" expression="counter + 1"/>
                </while>
            </while>
            <output expression="&quot;Score &quot;&amp;score" newline="True"/>
        </body>
    </function>
</flowgorithm>
