artificial inteligence

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?
 
P

Peter Bromberg [C# MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top