artificial inteligence

  • Thread starter Thread starter Andy B
  • Start date Start date
A

Andy B

I want to make a uno game where you can have multiple players including the
computer if the human player/s want it to. How would you make the support
for computer to play and actually play the right cards if it has any?
 
Well! First of all you would need an UNO Cards class to show the UNO cards
with all their colors.
Then you would need to code the logic for the computer to determine the card
color and number and decide what card to play from it's "Hand".
Then you would need a mechanism to keep track of each player's current hand
and the remaining cards in the UNO deck that haven't yet been drawn.

-- UNO!
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
 
Back
Top