Computer Science Canada

ai in monopoly

Author:  hey_joe42 [ Sat Mar 29, 2003 4:03 pm ]
Post subject:  ai in monopoly

anyone have any ideas of how to do ai for a monopoly game?
im conufsed cuz like there has to be a strategy or does anyone know strategy you could use in monopoly

Author:  Dan [ Sat Mar 29, 2003 4:10 pm ]
Post subject: 

basiclky buy everying you land on if you got the money Wink

Author:  Asok [ Sat Mar 29, 2003 4:12 pm ]
Post subject: 

I've made a full monopoly game (wont post it cuz it's ugly as shit Wink )

anyways the AI is fairly simple, it will buy anything it lands on if it can afford it. it will buy houses if it has a monopoly and if it can afford it. It will use get out of jail free cards or pay 50 dollars (if it can afford it) rather than rolling.

It gets complicated when you attempt to put in a trade and mortgage system. It will mortgage the properties that have the least probability of being landed on (can be done through variable counter keeping track of how many times a property has been landed on). It will unmortgage when it has a monopoly and wants to build a house.

It will attempt to buy a property off of the player for 50% over the actual value in the event it will give the AI a monopoly.

It's all conditional ifs and variable statements.

Author:  DarkHelmet [ Fri Apr 04, 2003 9:20 am ]
Post subject: 

I tried to write a monopoly program for my final project. The coding was too long, unpleasant to look at, and it would crash turing after you got around the board. I didn't give it computer players, and the trading didn't work properly. Despite all this, I got 95% on it. I couldn't believe it.