#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    1
    Rep Power
    0

    Arrow Help me please :S


    Hi everyone,i'm Alexandra,from Greece.

    My problem is;

    Computer and user will play one by one in my programme game.

    how can i do this ? how can i use for loop about of that ? thank you so much
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Location
    Gelderland
    Posts
    4
    Rep Power
    0
    Do you mean that you are writing a game, where the user plays against the computer, like chess?
    In that case you must write code that just takes input from you,
    but that can turn sides for the computer:
    the computer must choose the best action (or move) by observing
    all counter attacks, then again it must turn sides for every
    action generated to compute counter attacks again.
    This all until a certain DEPTH, otherwise it would never end.
    Of course computed attacks have a different value than
    counter attacks: with chess: mate by one side or mate by the other side.
    Anyway: so work all those games.
    ;JOOP!



    Originally Posted by alexandraivana
    Hi everyone,i'm Alexandra,from Greece.

    My problem is;

    Computer and user will play one by one in my programme game.

    how can i do this ? how can i use for loop about of that ? thank you so much

IMN logo majestic logo threadwatch logo seochat tools logo