Need help with assembly languange using MASM615 32bit

Okay I just need help and some shed on light how to overcomes this I mean from start…since I’m beginner with assembly…maybe expertise here can help me out by point me the rite path on how to dig it…

ok here’s the scenario I have to solve



A predetermine number is stored in an array named ANS.The number will be a 4-digit number, like 1234.Only numbers 0 to 9 is permitted.The player will be prompted to guess the number in the correct sequences.Clues will be given to help the player make the next guess.The clues are as follows

*  -->  right number and right place
+  --> right number but wrong place
&  --> wrong number and wrong place

sample:

Say the right answers is 1245.
User inputs:  1234
output      :  **&+

Player are given 9 try to get the right answers


So I’m really help from expertise on how to start it I mean after define the array and get the input from user here’s are my code currently…hope someone will give me some shed light on how to solve it…:slight_smile: really need help…any help are appreciated…

here’s the code just for my starting…


TITLE masterclassgame       <masterclassgame.asm>



INCLUDE Irvine32.inc

.data

ANS SWORD 1,2,3,4
RESTRICTED SWORD 0,5,6,7,8,9

inputUser BYTE "Please Enter Your Answers :",0

.code

main PROC

    mov edx,OFFSET inputUser
    call WriteString
    call Crlf
    call ReadInt
    ;how to assign input user into my variable???

    mov ebx,OFFSET ANS              ;point to array
    mov ecx,LENGTHOF ANS            ;loop counter

    call Crlf
    exit

main ENDP

End main



Hope will get help from expertise…tq in advanced