game+function+algoritme?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • me

    game+function+algoritme?

    hey all,

    I want to make a 4 on a row game (you know the red and yellow or blue round
    coins that you put in a empty square with holes and the first 4 on a row is
    the winner)

    i thougth on many solutions? like a matrix first row horizintal a,a1:1
    a,b1:2 a,c1:3 etc second row b,a1:1 b,b1:3 etc were the number after the : =
    the holes number
    and make a check if (a,a1),(b,a1),( c,a1),d,a1) = true this is the first row
    vertical
    or must i make a more simple function like example:

    [1][2][4][8][16][32]
    [64][128][256][512][1024]
    etc etc til also 6 row vertical
    example:winnera rray[x]=15 and all the winner numbers counted
    and if the user RED has examp the numbers 1+2+4+8 =15 and is a winner i do a
    check?
    if (redcount(1+2+4 +8)&winnerarray[x]==winnerarray[x]){alert("YES!!" )}

    any help ? or a link were there is a good explaining of this game function..

    ps i hate the games were you must do dumb 10000 ifs and else..

    best regard.. newbie=gamemake r :)

    after i finist i wil make it in flash but action script is the same logic


  • lallous

    #2
    Re: game+function+a lgoritme?

    Hello

    Don't know if this will help http://lgwm.org/o95js/o95js.zip , but it a game
    that uses two 6x6 tables and allows user to click and match.

    --
    Elias

    "me" <someone@micros oft.com> wrote in message
    news:3f7c2783$0 $31252$1b62eedf @news.wanadoo.n l...[color=blue]
    > hey all,
    >
    > I want to make a 4 on a row game (you know the red and yellow or blue[/color]
    round[color=blue]
    > coins that you put in a empty square with holes and the first 4 on a row[/color]
    is[color=blue]
    > the winner)
    >
    > i thougth on many solutions? like a matrix first row horizintal a,a1:1
    > a,b1:2 a,c1:3 etc second row b,a1:1 b,b1:3 etc were the number after the :[/color]
    =[color=blue]
    > the holes number
    > and make a check if (a,a1),(b,a1),( c,a1),d,a1) = true this is the first[/color]
    row[color=blue]
    > vertical
    > or must i make a more simple function like example:
    >
    > [1][2][4][8][16][32]
    > [64][128][256][512][1024]
    > etc etc til also 6 row vertical
    > example:winnera rray[x]=15 and all the winner numbers counted
    > and if the user RED has examp the numbers 1+2+4+8 =15 and is a winner i do[/color]
    a[color=blue]
    > check?
    > if (redcount(1+2+4 +8)&winnerarray[x]==winnerarray[x]){alert("YES!!" )}
    >
    > any help ? or a link were there is a good explaining of this game[/color]
    function..[color=blue]
    >
    > ps i hate the games were you must do dumb 10000 ifs and else..
    >
    > best regard.. newbie=gamemake r :)
    >
    > after i finist i wil make it in flash but action script is the same logic
    >
    >[/color]


    Comment

    • me

      #3
      Re: game+function+a lgoritme?

      thnks i wil check it out..

      "lallous" <lallous@lgwm.o rg> wrote in message
      news:blju7n$d41 hg$1@ID-161723.news.uni-berlin.de...[color=blue]
      > Hello
      >
      > Don't know if this will help http://lgwm.org/o95js/o95js.zip , but it a[/color]
      game[color=blue]
      > that uses two 6x6 tables and allows user to click and match.
      >
      > --
      > Elias
      > http://lgwm.org/
      > "me" <someone@micros oft.com> wrote in message
      > news:3f7c2783$0 $31252$1b62eedf @news.wanadoo.n l...[color=green]
      > > hey all,
      > >
      > > I want to make a 4 on a row game (you know the red and yellow or blue[/color]
      > round[color=green]
      > > coins that you put in a empty square with holes and the first 4 on a row[/color]
      > is[color=green]
      > > the winner)
      > >
      > > i thougth on many solutions? like a matrix first row horizintal a,a1:1
      > > a,b1:2 a,c1:3 etc second row b,a1:1 b,b1:3 etc were the number after the[/color][/color]
      :[color=blue]
      > =[color=green]
      > > the holes number
      > > and make a check if (a,a1),(b,a1),( c,a1),d,a1) = true this is the first[/color]
      > row[color=green]
      > > vertical
      > > or must i make a more simple function like example:
      > >
      > > [1][2][4][8][16][32]
      > > [64][128][256][512][1024]
      > > etc etc til also 6 row vertical
      > > example:winnera rray[x]=15 and all the winner numbers counted
      > > and if the user RED has examp the numbers 1+2+4+8 =15 and is a winner i[/color][/color]
      do[color=blue]
      > a[color=green]
      > > check?
      > > if (redcount(1+2+4 +8)&winnerarray[x]==winnerarray[x]){alert("YES!!" )}
      > >
      > > any help ? or a link were there is a good explaining of this game[/color]
      > function..[color=green]
      > >
      > > ps i hate the games were you must do dumb 10000 ifs and else..
      > >
      > > best regard.. newbie=gamemake r :)
      > >
      > > after i finist i wil make it in flash but action script is the same[/color][/color]
      logic[color=blue][color=green]
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...