
-----------------------------------
lollipopgirl
Tue Jan 17, 2006 6:09 pm

Matching card game problems.
-----------------------------------
k...i am done half part of my match card but I dun know how to add score to the matched card and made those wrong matched card disappear..Itz due tmr and i stilll haf no idea how to fix it..plz help and this is my program so far..


Martin says: Fixed the title. Carry on.

-----------------------------------
lollipopgirl
Tue Jan 17, 2006 6:25 pm

I posted it here
-----------------------------------
i posted it here

var player1, player2, first : string
var mark : array 1 .. 3, 1 .. 4 of int
var winid, midx, midy, counter, z, px, py : int := 0

var p1mark := 0
setscreen ("graphics:800;500")

var x := 300
var y := 300
var colo := 38
var vx, vy := 100

proc choice
    counter += 1


end choice

for a : 1 .. 3
    for b : 1 .. 4
        mark (a, b) := 0
    end for
end for


%Play Board

for a : 1 .. 3
    for b : 1 .. 4
        drawfillbox (x, y, x + 100, y + 100, colo)
        x += vx
        colo += 2
    end for
    x := 300
    drawfillbox (x, y, x + 100, y + 100, colo)
    y -= vy
end for

drawfilloval (350, 350, 40, 40, 1)
drawfilloval (450, 350, 40, 40, 6)
drawfilloval (550, 350, 40, 40, 9)
drawfilloval (650, 350, 40, 40, 36)

drawfilloval (350, 250, 40, 40, 9)
drawfilloval (450, 250, 40, 40, 11)
drawfilloval (550, 250, 40, 40, 36)
drawfilloval (650, 250, 40, 40, 6)

drawfilloval (350, 150, 40, 40, 5)
drawfilloval (450, 150, 40, 40, 1)
drawfilloval (550, 150, 40, 40, 11)
drawfilloval (650, 150, 40, 40, 5)

delay (2000)
cls
x := 300
y := 300
colo := 38
for a : 1 .. 3
    for b : 1 .. 4
        drawfillbox (x, y, x + 100, y + 100, colo)
        x += vx
        colo += 2
    end for
    x := 300
    drawfillbox (x, y, x + 100, y + 100, colo)
    y -= vy
end for

loop
    loop

        Mouse.Where (x, y, z)
        if x >= 300 and y >= 300 and x = 300 and x = 300 and x = 300 and x = 200 and x = 200 and x = 200 and x = 200 and x = 100 and x = 100 and x = 100 and x = 100 and x 